summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2018-03-09 08:52:30 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2018-03-09 08:52:30 +0100
commit8ebc1623b063e89a2e3e3b225af7c54dc2c5de2f (patch)
tree54d202bdc6b2376264ae2d3f7cff2625da79a62b /ACE
parent167e776843a3e756e1c879f4129479b15964d320 (diff)
downloadATCD-8ebc1623b063e89a2e3e3b225af7c54dc2c5de2f.tar.gz
Check if __GNUC__ is defined and only log that C++ support is ok when the test code has been compiled
* ACE/tests/Compiler_Features_38_Test.cpp:
Diffstat (limited to 'ACE')
-rw-r--r--ACE/tests/Compiler_Features_38_Test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp
index 83733394013..31a02190573 100644
--- a/ACE/tests/Compiler_Features_38_Test.cpp
+++ b/ACE/tests/Compiler_Features_38_Test.cpp
@@ -6,7 +6,7 @@
#include "test_config.h"
// g++ 4.1 can't handle this construct
-#if (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1))
+#if defined (__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1))
# define ACE_DISABLE_TEST
#endif
@@ -44,10 +44,10 @@ run_main (int, ACE_TCHAR *[])
Foo2Seq f2;
long const j = f2[0].i;
ACE_UNUSED_ARG(j);
-#endif /* !ACE_DISABLE_TEST */
ACE_DEBUG ((LM_INFO,
ACE_TEXT ("C++ support ok\n")));
+#endif /* !ACE_DISABLE_TEST */
ACE_END_TEST;