summaryrefslogtreecommitdiff
path: root/ACE/ace/config-vxworks6.4.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/config-vxworks6.4.h')
-rw-r--r--ACE/ace/config-vxworks6.4.h36
1 files changed, 20 insertions, 16 deletions
diff --git a/ACE/ace/config-vxworks6.4.h b/ACE/ace/config-vxworks6.4.h
index fbc957b9b85..c1372dd1fcf 100644
--- a/ACE/ace/config-vxworks6.4.h
+++ b/ACE/ace/config-vxworks6.4.h
@@ -54,6 +54,22 @@
# endif /* __cplusplus */
#endif /* ! __GNUG__ && ! ghs */
+// Needed include to get all VxWorks CPU types
+#include "types/vxCpu.h"
+#if defined __RTP__
+ #if defined (_VX_CPU) && (_VX_CPU == _VX_PENTIUM || _VX_CPU == _VX_PENTIUM2 || _VX_CPU == _VX_PENTIUM3 || _VX_CPU == _VX_PENTIUM4)
+ // If running an Intel Pentium the
+ // ACE_OS::gethrtime () can use the RDTSC instruction.
+ # define ACE_HAS_PENTIUM
+ #endif
+#else
+ #if defined (CPU) && (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
+ // If running an Intel Pentium the
+ // ACE_OS::gethrtime () can use the RDTSC instruction.
+ # define ACE_HAS_PENTIUM
+ #endif
+#endif
+
// OS-specific configuration
#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
#define ACE_HAS_3_PARAM_READDIR_R
@@ -174,6 +190,10 @@
#define ACE_HAS_SVR4_DYNAMIC_LINKING
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
#define ACE_LACKS_REGEX_H
+ #if defined ACE_HAS_PENTIUM
+ // Bug to workaround VxWorks 6.4 x86
+ # define ACE_LACKS_PUTENV
+ #endif
#define ACE_HAS_SETENV
#define ACE_HAS_3_PARAM_WCSTOK
#define ACE_HAS_WCHAR
@@ -272,22 +292,6 @@
# define ACE_MT_SAFE 1
#endif
-// Needed include to get all VxWorks CPU types
-#include "types/vxCpu.h"
-#if defined __RTP__
- #if defined (_VX_CPU) && (_VX_CPU == _VX_PENTIUM || _VX_CPU == _VX_PENTIUM2 || _VX_CPU == _VX_PENTIUM3 || _VX_CPU == _VX_PENTIUM4)
- // If running an Intel Pentium the
- // ACE_OS::gethrtime () can use the RDTSC instruction.
- # define ACE_HAS_PENTIUM
- #endif
-#else
- #if defined (CPU) && (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
- // If running an Intel Pentium the
- // ACE_OS::gethrtime () can use the RDTSC instruction.
- # define ACE_HAS_PENTIUM
- #endif
-#endif
-
// VxWorks defines the CPU define MAP, undef it to prevent problems with
// application code
#if defined (MAP)