New windows NT/95 port using MSV5.0. To export DLL functions the
[yaz-moved-to-github.git] / include / yconfig.h
index b8d1fab..8d5540e 100644 (file)
@@ -3,15 +3,15 @@
 
 /* System includes */
 
-#ifdef _VMS_
+#ifndef _VMS_
 
-#elif WINDOWS
+#ifdef WINDOWS
 
 #ifdef YNETINCLUDE
 #include <winsock.h>
 #endif
 
-#else
+#else /* #ifdef WINDOWS */
 /*
  * Standard Unix headers
  */
 #endif
 
 #endif
+#endif /* ifndef _VMS_ */
 
-#include <xmalloc.h>
+#ifndef YAZ_EXPORT
+#ifdef WINDOWS
+#define YAZ_EXPORT __declspec(dllexport)
+#else
+#define YAZ_EXPORT
+#endif
+#endif
 
 #ifdef WINDOWS
 #define MDF