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// DLLEXPORT: -- generated by dllexports.py
22#if !defined(IC_DLLEXPORT)
23# if defined(_WIN32)
24# define IC_DLLEXPORT __declspec(dllexport)
25# define IC_DLLIMPORT __declspec(dllimport)
26# else
27# if defined(USE_UNIX_VISIBILITY)
28# define IC_DLLEXPORT __attribute__((visibility("default")))
29# else
30# define IC_DLLEXPORT
31# endif
32# define IC_DLLIMPORT IC_DLLEXPORT
33# endif
34#endif
35
36#ifdef LIBSOM_DEFINITIONS
37 #define SOMAPI_CDECL SOM_CDECL IC_DLLEXPORT
38#else
39 #define SOMAPI_CDECL SOM_CDECL IC_DLLIMPORT
40#endif
41
42#endif /* _SOM_CDECL_H */

All rights reserved © 2002 - 2024 Isode Ltd.