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#ifndef IC_DLLEXPORT
35#ifdef _WIN32
36#ifndef ISODE_STATIC_LIBRARY_WINDOWS
37#define IC_DLLEXPORT __declspec(dllexport)
38#define IC_DLLIMPORT __declspec(dllimport)
39#else
40#define IC_DLLEXPORT
41#define IC_DLLIMPORT
42#endif
43#else
44#define IC_DLLEXPORT
45#define IC_DLLIMPORT
46#endif
47#endif
48
49# ifdef DSAPI
50# define LIBDSAPI_CDECL DSAPI_CDECL IC_DLLEXPORT
51# else
52# define LIBDSAPI_CDECL DSAPI_CDECL IC_DLLIMPORT
53# endif
54
55#ifdef __GNUC__
56
57 #define DSAPI_DEPRECATED __attribute__ ((deprecated))
58
59#else
60
61 #define DSAPI_DEPRECATED
62
63#endif
64
65#endif

All rights reserved © 2002 - 2024 Isode Ltd.