summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-27 14:57:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-08-27 14:57:17 +0000
commit7d42e64ce7fef2da8970d3c5c56341d66b54328d (patch)
tree70ecdc2917f271188c43f360180f4feed661d4b7
parent841c3eb70aaa19491bc875f6a1b9b7ffcb055fca (diff)
downloadATCD-7d42e64ce7fef2da8970d3c5c56341d66b54328d.tar.gz
undef ACE_WIN32 to test ACE_U_LongLong on NT
-rw-r--r--tests/Time_Value_Test.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/tests/Time_Value_Test.cpp b/tests/Time_Value_Test.cpp
index 6c4c0384b18..a96e24d97f9 100644
--- a/tests/Time_Value_Test.cpp
+++ b/tests/Time_Value_Test.cpp
@@ -21,13 +21,31 @@
#include "ace/config.h"
-// Force test of ACE_U_LongLong class.
-#undef ACE_HAS_HI_RES_TIMER
-#undef ACE_HAS_LONGLONG_T
+// Force test of ACE_U_LongLong class on all platforms.
+#if defined (ACE_HAS_HI_RES_TIMER) || defined (ACE_HAS_LONGLONG_T) || defined (ACE_WIN32)
+
+# if defined (ACE_HAS_HI_RES_TIMER)
+# undef ACE_HAS_HI_RES_TIMER
+# endif /* ACE_HAS_HI_RES_TIMER */
+
+# if defined (ACE_HAS_LONGLONG_T)
+# undef ACE_HAS_LONGLONG_T
+# endif /* ACE_HAS_LONGLONG_T */
+
+# if defined (ACE_WIN32)
+# undef ACE_WIN32
+# endif /* ACE_WIN32 */
+
+ // Force inlining, in case ACE_U_LongLong member function
+ // definitions are not in libACE.
+# define __ACE_INLINE__
+
+#endif /* ACE_HAS_HI_RES_TIMER || ACE_HAS_LONGLONG_T || ACE_WIN32 */
#include "ace/ACE.h"
#include "test_config.h"
+
u_long
test_ace_u_longlong ()
{