eds_cdecl.h
1/* Emacs mode: -*- C -*- */
2
3/* Copyright (c) 2015, Isode Limited, London, England.
4 * All rights reserved.
5 *
6 * Acquisition and use of this software and related materials for any
7 * purpose requires a written licence agreement from Isode Limited,
8 * or a written licence from an organisation licenced by Isode Limited
9 * to grant such a licence.
10 *
11 */
12
13/*
14 * eds_cdecl.h
15 *
16 */
17
18/*
19 *
20 * @VERSION@
21 */
22
23#ifndef _EDS_CDECL_H
24#define _EDS_CDECL_H
25
26#ifdef __cplusplus
27
28 #define EDS_CDECL extern "C"
29 #define EDS_CSPEC extern "C"
30 #define EDS_CTYPE "C"
31
32#else
33
34 #define EDS_CDECL extern
35 #define EDS_CSPEC
36 #define EDS_CTYPE
37
38#endif
39
40// DLLEXPORT: -- generated by dllexports.py
41#if !defined(IC_DLLEXPORT)
42# if defined(_WIN32)
43# define IC_DLLEXPORT __declspec(dllexport)
44# define IC_DLLIMPORT __declspec(dllimport)
45# else
46# if defined(USE_UNIX_VISIBILITY)
47# define IC_DLLEXPORT __attribute__((visibility("default")))
48# else
49# define IC_DLLEXPORT
50# endif
51# define IC_DLLIMPORT IC_DLLEXPORT
52# endif
53#endif
54
55# ifdef EDS
56# define LIBEDS_CDECL EDS_CSPEC IC_DLLEXPORT
57# else
58# define LIBEDS_CDECL EDS_CSPEC IC_DLLIMPORT
59# endif
60
61#endif /* _EDS_CDECL_H */

All rights reserved © 2002 - 2024 Isode Ltd.