New windows NT/95 port using MSV5.0. To export DLL functions the
[yaz-moved-to-github.git] / include / yconfig.h
1 #ifndef YCONFIG_H
2 #define YCONFIG_H
3
4 /* System includes */
5
6 #ifndef _VMS_
7
8 #ifdef WINDOWS
9
10 #ifdef YNETINCLUDE
11 #include <winsock.h>
12 #endif
13
14 #else /* #ifdef WINDOWS */
15 /*
16  * Standard Unix headers
17  */
18
19 #include <sys/types.h>
20 #include <sys/time.h>
21 #include <sys/wait.h>
22
23 #ifdef YNETINCLUDE
24 #include <netinet/in.h>
25 #include <sys/socket.h>
26 #include <netdb.h>
27 #include <arpa/inet.h>
28 #endif
29
30 #ifdef _AIX
31 #include <sys/select.h>
32 #endif
33
34 #endif
35 #endif /* ifndef _VMS_ */
36
37 #ifndef YAZ_EXPORT
38 #ifdef WINDOWS
39 #define YAZ_EXPORT __declspec(dllexport)
40 #else
41 #define YAZ_EXPORT
42 #endif
43 #endif
44
45 #ifdef WINDOWS
46 #define MDF
47 #else
48 #ifndef MDF
49 #define MDF
50 #endif
51 #endif
52
53 #endif