Using autoconf. New definitions: YAZ_BEGIN_CDECL/YAZ_END_CDECL.
[yaz-moved-to-github.git] / include / yaz / yconfig.h
1 #ifndef YCONFIG_H
2 #define YCONFIG_H
3
4 #if HAVE_CONFIG_H
5 #include <yaz/config.h>
6 #endif
7
8 #ifndef YAZ_EXPORT
9 # ifdef WIN32
10 #  define YAZ_EXPORT __declspec(dllexport)
11 # else
12 #  define YAZ_EXPORT
13 # endif
14 #endif
15
16 #ifdef __cplusplus
17 #define YAZ_BEGIN_CDECL extern "C" {
18 #define YAZ_END_CDECL }
19 #else
20 #define YAZ_BEGIN_CDECL 
21 #define YAZ_END_CDECL 
22 #endif
23
24 #endif