Summary: Isode provides a number of APIs which allow integrators and product developers to build components that access the Isode Messaging server products or other products supporting the same protocols.
cdecl.h
1 /* Copyright (c) 2004, Isode Limited, London, England.
2  * All rights reserved.
3  *
4  * Acquisition and use of this software and related materials for any
5  * purpose requires a written licence agreement from Isode Limited,
6  * or a written licence from an organisation licenced by Isode Limited
7  * to grant such a licence.
8  *
9  */
10 
11 
12 #ifndef _SOM_CDECL_H
13 #define _SOM_CDECL_H
14 
15 #ifdef __cplusplus
16  #define SOM_CDECL extern "C"
17  #define SOM_CSPEC extern "C"
18  #define SOM_CTYPE "C"
19 
20 #else
21 
22  #define SOM_CSPEC
23  #define SOM_CDECL extern
24  #define SOM_CTYPE
25 
26 #endif
27 
28 #ifdef _WIN32
29 
30 /* Default to DLL import */
31  #define SOMAPI_CDECL SOM_CSPEC __declspec(dllimport)
32 
33  #ifdef LIBSOM_DEFINITIONS
34 /* Defined if building the library */
35  #undef SOMAPI_CDECL
36  #define SOMAPI_CDECL SOM_CSPEC __declspec(dllexport)
37  #endif
38 
39 #else
40  /* Not on Windows - use standard extern declarations */
41  #define SOMAPI_CDECL extern SOM_CTYPE
42 
43 #endif
44 
45 #endif /* _SOM_CDECL_H */