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 #else
18  #define SOM_CDECL extern
19 #endif
20 
21 #ifndef IC_DLLEXPORT
22 #ifdef _WIN32
23 #define IC_DLLEXPORT __declspec(dllexport)
24 #define IC_DLLIMPORT __declspec(dllimport)
25 #else
26 #define IC_DLLEXPORT
27 #define IC_DLLIMPORT
28 #endif
29 #endif
30 
31 #ifdef LIBSOM_DEFINITIONS
32  #define SOMAPI_CDECL SOM_CDECL IC_DLLEXPORT
33 #else
34  #define SOMAPI_CDECL SOM_CDECL IC_DLLIMPORT
35 #endif
36 
37 #endif /* _SOM_CDECL_H */

All rights reserved © 2002 - 2024 Isode Ltd.