Added O_BINARY again.
[yaz-moved-to-github.git] / include / yaz / yconfig.h
1 #ifndef YCONFIG_H
2 #define YCONFIG_H
3
4 #ifndef YAZ_EXPORT
5 # ifdef WIN32
6 #  define YAZ_EXPORT __declspec(dllexport)
7 # else
8 #  define YAZ_EXPORT
9 # endif
10 #endif
11
12 #ifndef WIN32
13 # ifndef O_BINARY
14 #  define O_BINARY 0
15 # endif
16 #endif
17
18 #ifdef __cplusplus
19 #define YAZ_BEGIN_CDECL extern "C" {
20 #define YAZ_END_CDECL }
21 #else
22 #define YAZ_BEGIN_CDECL 
23 #define YAZ_END_CDECL 
24 #endif
25
26 #endif