X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fyconfig.h;h=9d831f0d9a984d84d2e9df94fcf59a245ee40e49;hp=394b7a0ae8334692fff2c11a14344266eb4409e0;hb=78e049108ef4c65f1dc3dddd747e59b90b75a9a6;hpb=4553ace9ab808a5db41bd7e03db6b8b4e9f8acc7 diff --git a/include/yaz/yconfig.h b/include/yaz/yconfig.h index 394b7a0..9d831f0 100644 --- a/include/yaz/yconfig.h +++ b/include/yaz/yconfig.h @@ -1,45 +1,24 @@ #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 +#if HAVE_CONFIG_H +#include #endif +#ifndef YAZ_EXPORT +# ifdef WIN32 +# define YAZ_EXPORT __declspec(dllexport) +# else +# define YAZ_EXPORT +# 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