Correct feature names
[ACE_TAO.git] / ACE / ace / config-win32-mingw.h
blob63a78386938ea799be88a5bb0d16e14b44e428aa
1 // -*- C++ -*-
2 //
3 // The following configuration file is designed to work for win32
4 // platforms using gcc/g++ with mingw32 (http://www.mingw.org).
5 //
7 #ifndef ACE_CONFIG_WIN32_MINGW_H
8 #define ACE_CONFIG_WIN32_MINGW_H
9 #include /**/ "ace/pre.h"
11 #ifndef ACE_CONFIG_WIN32_H
12 # error Use config-win32.h in config.h instead of this header
13 #endif /* ACE_CONFIG_WIN32_H */
15 #define ACE_CC_PREPROCESSOR "cpp"
16 #define ACE_CC_PREPROCESOR_ARGS ""
18 #if !defined(__MINGW32__)
19 # error You do not seem to be using mingw32
20 #endif
22 #include "ace/config-g++-common.h"
24 #include /**/ <_mingw.h>
25 #include /**/ <w32api.h>
27 #define ACE_HAS_USER_MODE_MASKS
29 #if (__MINGW32_MAJOR_VERSION < 2)
30 # error You need a newer version (>= 2.0) of mingw32/w32api
31 #endif
33 // In strict ANSI mode (default when using --std=c++0x) the fileno()
34 // macro is not defined so use the following work around.
35 #if defined(__STRICT_ANSI__)
36 # define ACE_FILENO_EQUIVALENT ::_fileno
37 #endif
39 #if (__MINGW32_MAJOR_VERSION >= 3)
40 # define ACE_HAS_SSIZE_T
41 # undef ACE_LACKS_STRUCT_DIR
42 # undef ACE_LACKS_OPENDIR
43 # undef ACE_LACKS_CLOSEDIR
44 # undef ACE_LACKS_READDIR
45 # undef ACE_LACKS_TELLDIR
46 # undef ACE_LACKS_SEEKDIR
47 # undef ACE_LACKS_REWINDDIR
48 #else
49 # define ACE_LACKS_DIRENT_H
50 #endif
52 #if (__MINGW32_MAJOR_VERSION > 3) || ((__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION >= 15))
53 # undef ACE_LACKS_USECONDS_T
54 # if defined (ACE_LACKS_SIGSET_T)
55 # undef ACE_LACKS_SIGSET_T
56 # endif
57 #endif
59 #undef ACE_HAS_WTOF
61 #define ACE_LACKS_SYS_SHM_H
62 #define ACE_LACKS_TERMIOS_H
63 #define ACE_LACKS_NETINET_TCP_H
64 #define ACE_LACKS_STRRECVFD
65 #define ACE_LACKS_STRPTIME
66 #define ACE_LACKS_POLL_H
67 #define ACE_LACKS_REGEX_H
68 #define ACE_LACKS_SYS_MSG_H
69 #define ACE_LACKS_PWD_H
70 #define ACE_LACKS_SEMAPHORE_H
71 #define ACE_LACKS_UCONTEXT_H
72 #define ACE_LACKS_SYS_SELECT_H
73 #define ACE_LACKS_SYS_RESOURCE_H
74 #define ACE_LACKS_SYS_WAIT_H
75 #define ACE_LACKS_DLFCN_H
76 #define ACE_LACKS_SYS_MMAN_H
77 #define ACE_LACKS_SYS_UIO_H
78 #define ACE_LACKS_SYS_SOCKET_H
79 #define ACE_LACKS_NETINET_IN_H
80 #define ACE_LACKS_NETDB_H
81 #define ACE_LACKS_NET_IF_H
82 #define ACE_LACKS_SYS_IPC_H
83 #define ACE_LACKS_SYS_SEM_H
84 #define ACE_LACKS_STROPTS_H
85 #define ACE_LACKS_SYS_IOCTL_H
86 #define ACE_LACKS_PDH_H
87 #define ACE_LACKS_PDHMSG_H
88 #define ACE_LACKS_STRTOK_R
89 #define ACE_LACKS_LOCALTIME_R
90 #define ACE_LACKS_GMTIME_R
91 #define ACE_LACKS_ASCTIME_R
92 #define ACE_HAS_NONCONST_WCSDUP
93 #define ACE_HAS_WINSOCK2_GQOS
94 #define ACE_ISCTYPE_EQUIVALENT ::_isctype
96 // We trust the user: He must have used -mpentiumpro or -mpentium
97 // if that is what he wants.
98 #if defined(pentiumpro) || defined(pentium)
99 # define ACE_HAS_PENTIUM
100 #endif
102 #define ACE_INT64_FORMAT_SPECIFIER_ASCII "%I64d"
103 #define ACE_UINT64_FORMAT_SPECIFIER_ASCII "%I64u"
105 #define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) (STATUS))
107 #define ACE_DLL_PREFIX ACE_TEXT ("lib")
109 #include /**/ "ace/post.h"
110 #endif /* ACE_CONFIG_WIN32_MINGW_H */