Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ace / config-win32-borland.h
blobd3179fef4b8f8f4ef04c6ccea713e316a38c0f40
1 //-*- C++ -*-
2 // The following configuration file contains defines for Borland compilers.
4 #ifndef ACE_CONFIG_WIN32_BORLAND_H
5 #define ACE_CONFIG_WIN32_BORLAND_H
6 #include /**/ "ace/pre.h"
8 #ifndef ACE_CONFIG_WIN32_H
9 # error Use config-win32.h in config.h instead of this header
10 #endif /* ACE_CONFIG_WIN32_H */
12 #define ACE_HAS_CUSTOM_EXPORT_MACROS 1
13 #define ACE_Proper_Export_Flag __declspec (dllexport)
14 #define ACE_Proper_Import_Flag __declspec (dllimport)
15 #define ACE_EXPORT_SINGLETON_DECLARATION(T) template class __declspec (dllexport) T
16 #define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class __declspec (dllexport) SINGLETON_TYPE<CLASS, LOCK>;
17 #define ACE_IMPORT_SINGLETON_DECLARATION(T) template class __declspec (dllimport) T
18 #define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class __declspec (dllimport) SINGLETON_TYPE <CLASS, LOCK>;
20 // In later versions of C++Builder we will prefer inline functions by
21 // default. The debug configuration of ACE is built with functions
22 // out-of-line, so when linking your application against a debug ACE
23 // build, you can choose to use the out-of-line functions by adding
24 // ACE_NO_INLINE=1 to your project settings.
25 # if !defined (__ACE_INLINE__)
26 # define __ACE_INLINE__ 1
27 # endif /* __ACE_INLINE__ */
29 #define ACE_CC_NAME ACE_TEXT ("Embarcadero C++ Builder")
30 #define ACE_CC_MAJOR_VERSION (__BORLANDC__ / 0x100)
31 #define ACE_CC_MINOR_VERSION (__BORLANDC__ % 0x100)
32 #define ACE_CC_BETA_VERSION (0)
34 #if !defined (WIN32)
35 # if defined (__WIN32__) || defined (_WIN32)
36 # define WIN32 1
37 # endif
38 #endif
40 // When building a VCL application, the main VCL header file should be
41 // included before anything else. You can define ACE_HAS_VCL=1 in your
42 // project settings to have this file included for you automatically.
43 # if defined (ACE_HAS_VCL) && (ACE_HAS_VCL != 0)
44 # include /**/ <vcl.h>
45 # endif
47 #if defined (_WIN64)
48 # define ACE_HAS_BCC64
49 #else
50 # define ACE_HAS_BCC32
51 #endif
53 #define ACE_CC_PREPROCESSOR_ARGS "--precompile -q -o%s"
55 #if defined (ACE_HAS_BCC64)
56 # define ACE_CC_PREPROCESSOR "BCC64.EXE"
57 #else
58 # define ACE_CC_PREPROCESSOR "BCC32X.EXE"
59 #endif
61 # include "ace/config-win32-common.h"
63 #define ACE_WSTRING_HAS_USHORT_SUPPORT 1
64 #define ACE_HAS_DIRENT
66 #define ACE_HAS_WIN32_STRUCTURED_EXCEPTIONS
68 #define ACE_LACKS_TERMIOS_H
69 #define ACE_LACKS_NETINET_TCP_H
70 #define ACE_LACKS_REGEX_H
71 #define ACE_LACKS_SYS_MSG_H
72 #define ACE_LACKS_PWD_H
73 #define ACE_LACKS_POLL_H
74 #define ACE_LACKS_SYS_SHM_H
75 #define ACE_LACKS_STRINGS_H
76 #define ACE_LACKS_SEMAPHORE_H
77 #define ACE_LACKS_INTTYPES_H
78 #define ACE_LACKS_UCONTEXT_H
79 #define ACE_LACKS_SYS_SELECT_H
80 #define ACE_LACKS_SYS_TIME_H
81 #define ACE_LACKS_SYS_RESOURCE_H
82 #define ACE_LACKS_SYS_WAIT_H
83 #define ACE_LACKS_DLFCN_H
84 #define ACE_LACKS_SYS_MMAN_H
85 #define ACE_LACKS_SYS_UIO_H
86 #define ACE_LACKS_SYS_SOCKET_H
87 #define ACE_LACKS_NETINET_IN_H
88 #define ACE_LACKS_NETDB_H
89 #define ACE_LACKS_NET_IF_H
90 #define ACE_LACKS_SYS_IPC_H
91 #define ACE_LACKS_SYS_SEM_H
92 #define ACE_LACKS_SYS_IOCTL_H
93 #define ACE_LACKS_STROPTS_H
94 #define ACE_LACKS_WCSRTOMBS
95 #define ACE_LACKS_SET_ABORT_BEHAVIOR
97 #undef ACE_LACKS_REWINDDIR
99 #if !defined (__MINGW64__)
100 # define ACE_HAS_WOPENDIR_EQUIVALENT ::wopendir
101 # define ACE_HAS_WCLOSEDIR_EQUIVALENT ::wclosedir
102 # define ACE_HAS_WREADDIR_EQUIVALENT ::wreaddir
103 # define ACE_HAS_WREWINDDIR_EQUIVALENT ::wrewinddir
104 #else
105 # define ACE_HAS_WOPENDIR_EQUIVALENT ::_wopendir
106 # define ACE_HAS_WCLOSEDIR_EQUIVALENT ::_wclosedir
107 # define ACE_HAS_WREADDIR_EQUIVALENT ::_wreaddir
108 # define ACE_HAS_WREWINDDIR_EQUIVALENT ::_wrewinddir
109 #endif
111 #define ACE_LACKS_STRRECVFD
113 #if !defined (__MINGW64__)
114 # define ACE_USES_EXPLICIT_STD_NAMESPACE
115 # define ACE_LACKS_PID_T
116 # define ACE_USES_STD_NAMESPACE_FOR_STDC_LIB 1
117 #endif
119 #if defined (ACE_HAS_BCC64)
120 # define ACE_HAS_TIME_T_LONG_MISMATCH
121 #endif
123 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
124 #define ACE_HAS_SIG_ATOMIC_T
125 #define ACE_HAS_USER_MODE_MASKS 1
126 #define ACE_LACKS_ACE_IOSTREAM 1
127 #define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
128 #if defined (ACE_HAS_BCC32)
129 # define ACE_UINT64_FORMAT_SPECIFIER_ASCII "%Lu"
130 # define ACE_INT64_FORMAT_SPECIFIER_ASCII "%Ld"
131 #endif
132 #define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) STATUS)
134 #if defined(ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
135 // must have _MT defined to include multithreading
136 // features from win32 headers
137 # if !defined(__MT__)
138 // *** DO NOT *** defeat this error message by defining __MT__ yourself.
139 // You must link with the multi threaded libraries. Add -tWM to your
140 // compiler options
141 # error You must link against multi-threaded libraries when using ACE (check your project settings)
142 # endif /* !__MT__ */
143 #endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
145 #define ACE_LACKS_ISWCTYPE
146 #define ACE_LACKS_ISCTYPE
147 #define ACE_LACKS_STRTOK_R
148 #define ACE_LACKS_ASCTIME_R
150 #if (__BORLANDC__ <= 0x740)
151 # define ACE_LACKS_LOCALTIME_R
152 # define ACE_LACKS_GMTIME_R
153 #endif
155 #define ACE_WCSDUP_EQUIVALENT ::_wcsdup
156 #define ACE_STRCASECMP_EQUIVALENT ::stricmp
157 #define ACE_STRNCASECMP_EQUIVALENT ::strnicmp
158 #define ACE_WTOF_EQUIVALENT ::_wtof
159 #define ACE_FILENO_EQUIVALENT(X) (_get_osfhandle (::_fileno (X)))
160 #define ACE_HAS_ITOA
162 #if defined (ACE_HAS_BCC64)
163 # if (__BORLANDC__ <= 0x730)
164 # define ACE_LACKS_SWAB
165 # endif
166 #endif
168 #if defined (ACE_HAS_BCC32)
169 # define ACE_SIZEOF_LONG_DOUBLE 10
170 # define ACE_NEEDS_DL_UNDERSCORE
171 #endif
173 #define ACE_HAS_BUILTIN_BSWAP16
174 #define ACE_HAS_BUILTIN_BSWAP32
175 #define ACE_HAS_BUILTIN_BSWAP64
176 #define ACE_LACKS_INLINE_ASSEMBLY
178 #if defined(__MINGW64__)
179 # define ACE_LACKS_GID_T
180 # undef ACE_LACKS_USECONDS_T
181 # define ACE_HAS_POSIX_TIME
182 # define ACE_LACKS_TIMESPEC_T
183 # define ACE_LACKS_UID_T
184 # define ACE_LACKS_GMTIME_R
185 # define ACE_LACKS_LOCALTIME_R
186 # define ACE_LACKS_NLINK_T
187 # define ACE_HAS_3_PARAM_WCSTOK
188 # define ACE_LACKS_STRPTIME
189 #endif
191 #if __cplusplus >= 201103L
192 # define ACE_HAS_CPP11
193 #endif
194 #if __cplusplus >= 201402L
195 # define ACE_HAS_CPP14
196 #endif
197 #if __cplusplus >= 201703L
198 # define ACE_HAS_CPP17
199 #endif
200 #if __cplusplus >= 202002L
201 # define ACE_HAS_CPP20
202 #endif
203 #if __cplusplus >= 202302L
204 # define ACE_HAS_CPP23
205 #endif
207 #include /**/ "ace/post.h"
208 #endif /* ACE_CONFIG_WIN32_BORLAND_H */