X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fyconfig.h;h=fbb6d48c2f47a5f0713413bef13dbee33c3add36;hb=59526fbbf2e3b54ce94b3e79e6c7fef9e4f456fb;hp=394b7a0ae8334692fff2c11a14344266eb4409e0;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/include/yaz/yconfig.h b/include/yaz/yconfig.h index 394b7a0..fbb6d48 100644 --- a/include/yaz/yconfig.h +++ b/include/yaz/yconfig.h @@ -1,45 +1,33 @@ +/* + * Copyright (c) 1995-2000, Index Data. + * See the file LICENSE for details. + * + * $Id: yconfig.h,v 1.5 2000-03-01 09:53:32 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