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)
35 # if defined (__WIN32__) || defined (_WIN32)
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>
48 # define ACE_HAS_BCC64
50 # define ACE_HAS_BCC32
53 #define ACE_CC_PREPROCESSOR_ARGS "--precompile -q -o%s"
55 #if defined (ACE_HAS_BCC64)
56 # define ACE_CC_PREPROCESSOR "BCC64.EXE"
58 # define ACE_CC_PREPROCESSOR "BCC32X.EXE"
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 #define ACE_HAS_WOPENDIR
100 #define ACE_HAS_WCLOSEDIR
101 #define ACE_HAS_WREADDIR
102 #define ACE_HAS_WREWINDDIR
104 #define ACE_LACKS_STRRECVFD
106 #if !defined (__MINGW64__)
107 # define ACE_USES_EXPLICIT_STD_NAMESPACE
108 # define ACE_LACKS_PID_T
109 # define ACE_USES_STD_NAMESPACE_FOR_STDC_LIB 1
112 #if defined (ACE_HAS_BCC64)
113 # define ACE_HAS_TIME_T_LONG_MISMATCH
116 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
117 #define ACE_HAS_SIG_ATOMIC_T
118 #define ACE_HAS_USER_MODE_MASKS 1
119 #define ACE_LACKS_ACE_IOSTREAM 1
120 #define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
121 #if defined (ACE_HAS_BCC32)
122 # define ACE_UINT64_FORMAT_SPECIFIER_ASCII "%Lu"
123 # define ACE_INT64_FORMAT_SPECIFIER_ASCII "%Ld"
125 #define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) STATUS)
127 #if defined(ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
128 // must have _MT defined to include multithreading
129 // features from win32 headers
130 # if !defined(__MT__)
131 // *** DO NOT *** defeat this error message by defining __MT__ yourself.
132 // You must link with the multi threaded libraries. Add -tWM to your
134 # error You must link against multi-threaded libraries when using ACE (check your project settings)
135 # endif /* !__MT__ */
136 #endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
138 #define ACE_LACKS_ISWCTYPE
139 #define ACE_LACKS_ISCTYPE
140 #define ACE_LACKS_STRTOK_R
141 #define ACE_LACKS_ASCTIME_R
143 #if (__BORLANDC__ <= 0x740)
144 # define ACE_LACKS_LOCALTIME_R
145 # define ACE_LACKS_GMTIME_R
148 #define ACE_WCSDUP_EQUIVALENT ::_wcsdup
149 #define ACE_STRCASECMP_EQUIVALENT ::stricmp
150 #define ACE_STRNCASECMP_EQUIVALENT ::strnicmp
151 #define ACE_WTOF_EQUIVALENT ::_wtof
152 #define ACE_FILENO_EQUIVALENT(X) (_get_osfhandle (::_fileno (X)))
155 #if defined (ACE_HAS_BCC64)
156 # if (__BORLANDC__ <= 0x730)
157 # define ACE_LACKS_SWAB
161 #if defined (ACE_HAS_BCC32)
162 # define ACE_SIZEOF_LONG_DOUBLE 10
163 # define ACE_NEEDS_DL_UNDERSCORE
166 #define ACE_HAS_BUILTIN_BSWAP16
167 #define ACE_HAS_BUILTIN_BSWAP32
168 #define ACE_HAS_BUILTIN_BSWAP64
169 #define ACE_LACKS_INLINE_ASSEMBLY
171 #if defined(__MINGW64__)
172 # define ACE_LACKS_GID_T
173 # undef ACE_LACKS_USECONDS_T
174 # define ACE_HAS_POSIX_TIME
175 # define ACE_LACKS_TIMESPEC_T
176 # define ACE_LACKS_UID_T
177 # define ACE_LACKS_GMTIME_R
178 # define ACE_LACKS_LOCALTIME_R
179 # define ACE_LACKS_NLINK_T
180 # define ACE_HAS_3_PARAM_WCSTOK
181 # define ACE_LACKS_STRPTIME
184 #if __cplusplus >= 201103L
185 # define ACE_HAS_CPP11
187 #if __cplusplus >= 201402L
188 # define ACE_HAS_CPP14
190 #if __cplusplus >= 201703L
191 # define ACE_HAS_CPP17
193 #if __cplusplus >= 202002L
194 # define ACE_HAS_CPP20
197 #include /**/ "ace/post.h"
198 #endif /* ACE_CONFIG_WIN32_BORLAND_H */