Added APDU log to client.
[yaz-moved-to-github.git] / include / yconfig.h
index b8d1fab..394b7a0 100644 (file)
@@ -3,19 +3,15 @@
 
 /* System includes */
 
-#ifdef _VMS_
+#ifndef _VMS_
 
-#elif WINDOWS
+#ifdef WIN32
 
 #ifdef YNETINCLUDE
 #include <winsock.h>
 #endif
 
-#else
-/*
- * Standard Unix headers
- */
-
+#else /* #ifdef WIN32 */
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/select.h>
 #endif
 
+#ifndef O_BINARY
+#define O_BINARY 0
 #endif
 
-#include <xmalloc.h>
+#endif
+#endif /* ifndef _VMS_ */
 
-#ifdef WINDOWS
-#define MDF
+#ifndef YAZ_EXPORT
+#ifdef WIN32
+#define YAZ_EXPORT __declspec(dllexport)
 #else
-#ifndef MDF
-#define MDF
+#define YAZ_EXPORT
 #endif
 #endif