5c995b41fcd92a1e5793c297f9020142e53d313d
[yaz-moved-to-github.git] / include / yaz / yconfig.h
1 /*
2  * Copyright (c) 1995-2003, Index Data.
3  * See the file LICENSE for details.
4  *
5  * $Id: yconfig.h,v 1.6 2003-02-18 14:28:52 adam Exp $
6  */
7
8 #ifndef YCONFIG_H
9 #define YCONFIG_H
10
11 #ifndef YAZ_EXPORT
12 # ifdef WIN32
13 #  define YAZ_EXPORT __declspec(dllexport)
14 # else
15 #  define YAZ_EXPORT
16 # endif
17 #endif
18
19 #ifndef WIN32
20 # ifndef O_BINARY
21 #  define O_BINARY 0
22 # endif
23 #endif
24
25 #ifdef __cplusplus
26 #define YAZ_BEGIN_CDECL extern "C" {
27 #define YAZ_END_CDECL }
28 #else
29 #define YAZ_BEGIN_CDECL 
30 #define YAZ_END_CDECL 
31 #endif
32
33 #endif