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

All rights reserved © 2002 - 2024 Isode Ltd.