X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fyconfig.h;h=5c995b41fcd92a1e5793c297f9020142e53d313d;hb=073195289eb9b73d6793fa283e5a7dca7a24fba8;hp=394b7a0ae8334692fff2c11a14344266eb4409e0;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/include/yaz/yconfig.h b/include/yaz/yconfig.h index 394b7a0..5c995b4 100644 --- a/include/yaz/yconfig.h +++ b/include/yaz/yconfig.h @@ -1,45 +1,33 @@ +/* + * Copyright (c) 1995-2003, Index Data. + * See the file LICENSE for details. + * + * $Id: yconfig.h,v 1.6 2003-02-18 14:28:52 adam Exp $ + */ + #ifndef YCONFIG_H #define YCONFIG_H -/* System includes */ - -#ifndef _VMS_ - -#ifdef WIN32 - -#ifdef YNETINCLUDE -#include -#endif - -#else /* #ifdef WIN32 */ -#include -#include -#include - -#ifdef YNETINCLUDE -#include -#include -#include -#include -#endif - -#ifdef _AIX -#include -#endif - -#ifndef O_BINARY -#define O_BINARY 0 +#ifndef YAZ_EXPORT +# ifdef WIN32 +# define YAZ_EXPORT __declspec(dllexport) +# else +# define YAZ_EXPORT +# endif #endif +#ifndef WIN32 +# ifndef O_BINARY +# define O_BINARY 0 +# endif #endif -#endif /* ifndef _VMS_ */ -#ifndef YAZ_EXPORT -#ifdef WIN32 -#define YAZ_EXPORT __declspec(dllexport) +#ifdef __cplusplus +#define YAZ_BEGIN_CDECL extern "C" { +#define YAZ_END_CDECL } #else -#define YAZ_EXPORT -#endif +#define YAZ_BEGIN_CDECL +#define YAZ_END_CDECL #endif #endif