Added missing C decl macros for soap.h and srw.h.
[yaz-moved-to-github.git] / include / yaz / yconfig.h
index 394b7a0..5c995b4 100644 (file)
@@ -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 <winsock.h>
-#endif
-
-#else /* #ifdef WIN32 */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <sys/wait.h>
-
-#ifdef YNETINCLUDE
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <arpa/inet.h>
-#endif
-
-#ifdef _AIX
-#include <sys/select.h>
-#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