summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2017-07-20 11:22:43 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2017-07-20 11:22:43 +0200
commit2d51ee5608628d0a9c607340ae158859f7330787 (patch)
tree7d4443e1c7500e79a8030cc674064785a57fc2e6
parented8549c781c554d59f44450dac6bd44caf6490d3 (diff)
downloadATCD-2d51ee5608628d0a9c607340ae158859f7330787.tar.gz
Use ACE_WIN32 and bcc32c doesn't set __WIN32__ but uses _WIN32
* ACE/ASNMP/asnmp/octet.cpp: * ACE/ASNMP/tests/Counter64_Test.cpp: * ACE/ace/Configuration_Import_Export.cpp: * ACE/ace/config-win32-borland.h: * ACE/examples/Mem_Map/IO-tests/IO_Test.cpp: * ACE/examples/Mem_Map/IO-tests/test_io.cpp: * TAO/tao/orbconf.h:
-rw-r--r--ACE/ASNMP/asnmp/octet.cpp4
-rw-r--r--ACE/ASNMP/tests/Counter64_Test.cpp2
-rw-r--r--ACE/ace/Configuration_Import_Export.cpp6
-rw-r--r--ACE/ace/config-win32-borland.h6
-rw-r--r--ACE/examples/Mem_Map/IO-tests/IO_Test.cpp5
-rw-r--r--ACE/examples/Mem_Map/IO-tests/test_io.cpp4
-rw-r--r--TAO/tao/orbconf.h9
7 files changed, 10 insertions, 26 deletions
diff --git a/ACE/ASNMP/asnmp/octet.cpp b/ACE/ASNMP/asnmp/octet.cpp
index 7a248f2df7f..e5803dcf4fe 100644
--- a/ACE/ASNMP/asnmp/octet.cpp
+++ b/ACE/ASNMP/asnmp/octet.cpp
@@ -572,11 +572,11 @@ const char *OctetStr::to_string_hex()
// TODO: verify ACE_OS:: on NT works like this or not
-#if defined(_WIN32)
+#if defined(ACE_WIN32)
const char *fmt = " %s\r\n";
#else
const char *fmt = " %s\n";
-#endif // _WIN32
+#endif // ACE_WIN32
ACE_OS::sprintf(line_ptr, fmt, char_buf);
line_ptr += 3 + ACE_OS::strlen(char_buf);
diff --git a/ACE/ASNMP/tests/Counter64_Test.cpp b/ACE/ASNMP/tests/Counter64_Test.cpp
index 772fc5ed9a4..7ac4772cdb7 100644
--- a/ACE/ASNMP/tests/Counter64_Test.cpp
+++ b/ACE/ASNMP/tests/Counter64_Test.cpp
@@ -38,7 +38,7 @@ DAMAGES.
#include "test_config.h"
// TODO: verify this with ACE folks
-#if defined(_WIN32)
+#if defined(ACE_WIN32)
#define LLONG __int64
#define ULLONG unsigned __int64
#else
diff --git a/ACE/ace/Configuration_Import_Export.cpp b/ACE/ace/Configuration_Import_Export.cpp
index e1b491460f2..c9da29bfbfb 100644
--- a/ACE/ace/Configuration_Import_Export.cpp
+++ b/ACE/ace/Configuration_Import_Export.cpp
@@ -365,11 +365,9 @@ ACE_Registry_ImpExp::export_section (const ACE_Configuration_Section_Key& sectio
line += string_value + ACE_TEXT ("\"");
break;
}
-#ifdef _WIN32
+#ifdef ACE_WIN32
case ACE_Configuration::INVALID:
- break; // JDO added break. Otherwise INVALID is processed
- // like BINARY. If that's correct, please remove the
- // break and these comments
+ break;
#endif
case ACE_Configuration::BINARY:
{
diff --git a/ACE/ace/config-win32-borland.h b/ACE/ace/config-win32-borland.h
index d66de02dc17..05ea3be6d99 100644
--- a/ACE/ace/config-win32-borland.h
+++ b/ACE/ace/config-win32-borland.h
@@ -35,11 +35,11 @@
# define ACE_CC_PREPROCESSOR_ARGS "-q -Sl -o%s"
#endif
-// Automatically define WIN32 macro if the compiler tells us it is our
-// target platform.
-# if defined (__WIN32__) && !defined (WIN32)
+#if !defined (WIN32)
+# if defined (__WIN32__) || defined (_WIN32)
# define WIN32 1
# endif
+#endif
// When building a VCL application, the main VCL header file should be
// included before anything else. You can define ACE_HAS_VCL=1 in your
diff --git a/ACE/examples/Mem_Map/IO-tests/IO_Test.cpp b/ACE/examples/Mem_Map/IO-tests/IO_Test.cpp
index fa9c9148281..3401fb675a1 100644
--- a/ACE/examples/Mem_Map/IO-tests/IO_Test.cpp
+++ b/ACE/examples/Mem_Map/IO-tests/IO_Test.cpp
@@ -1,5 +1,3 @@
-#if !defined(_WIN32)
-
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"
@@ -7,8 +5,7 @@
#include "ace/Log_Msg.h"
#include "IO_Test.h"
-
-
+#if !defined(ACE_WIN32)
IO_Test::IO_Test (const char *name,
diff --git a/ACE/examples/Mem_Map/IO-tests/test_io.cpp b/ACE/examples/Mem_Map/IO-tests/test_io.cpp
index ace4bea5345..65a48a0d65b 100644
--- a/ACE/examples/Mem_Map/IO-tests/test_io.cpp
+++ b/ACE/examples/Mem_Map/IO-tests/test_io.cpp
@@ -9,9 +9,7 @@
#include "ace/Log_Msg.h"
#include "IO_Test.h"
-
-
-#if !defined(_WIN32)
+#if !defined(ACE_WIN32)
// Name of program.
static const ACE_TCHAR *program_name;
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h
index 411a90866cd..0f7307f3187 100644
--- a/TAO/tao/orbconf.h
+++ b/TAO/tao/orbconf.h
@@ -202,15 +202,6 @@ const size_t TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE = 128;
#define TAO_HAS_EXCEPTIONS
-// BC++ seems to have a different convention for detecting Win32 than
-// VC++.
-
-#if defined (__WIN32__)
-# if !defined(_WIN32)
-# define _WIN32
-# endif /* !defined(_WIN32) */
-#endif /* __WIN32__ */
-
// Define if your processor does not store words with the most significant
// byte first.