diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-22 22:42:21 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-22 22:42:21 +0000 |
commit | 9b94a5407bc263b4cf9486b28e4ab1b968108ce3 (patch) | |
tree | 323b262d9bb72327c8d6d24eaee2a40edf11602d | |
parent | 23b0a3bd290d907c6855f36be45fc1bb29b33cde (diff) | |
download | ATCD-9b94a5407bc263b4cf9486b28e4ab1b968108ce3.tar.gz |
added GreenHills support
-rw-r--r-- | ace/config-chorus.h | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/ace/config-chorus.h b/ace/config-chorus.h index 048b68fb0c1..73bcb59a6dc 100644 --- a/ace/config-chorus.h +++ b/ace/config-chorus.h @@ -1,20 +1,39 @@ /* -*- C++ -*- */ -// $Id: +// $Id$ -// The following configuration file is designed to work for chorus -// platforms using GNU C++ and the MIT threads package. +// The following configuration file is designed to work for Chorus +// platforms using the MIT threads package and one of these compilers: +// * GNU g++ +// * GreenHills #if !defined (ACE_CONFIG_H) #define ACE_CONFIG_H #if !defined (__ACE_INLINE__) -#define __ACE_INLINE__ +# define __ACE_INLINE__ #endif /* ! __ACE_INLINE__ */ #define CHORUS 3.1b #if defined (linux) -#undef linux -#endif + // This shouldn't be necessary. +# undef linux +#endif /* linux */ + +// Compiler-specific configuration. + +#if defined (__GNUG__) +# define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION +# define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES +# define ACE_TEMPLATES_REQUIRE_SOURCE +#elif defined (ghs) +# define ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA +# define ACE_HAS_WCHAR_TYPEDEFS_CHAR +# define ACE_LACKS_UNISTD_H +#else /* ! __GNUG__ && ! ghs */ +# error unsupported compiler on VxWorks +#endif /* ! __GNUG__ && ! ghs */ + +// OS-specific configuration // Optimize ACE_Handle_Set for select(). #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT @@ -75,31 +94,21 @@ // Defines the page size of the system. #define ACE_PAGE_SIZE 4096 - // Turns off the tracing feature. #if !defined (ACE_NTRACE) -#define ACE_NTRACE 1 +# define ACE_NTRACE 1 #endif /* ACE_NTRACE */ // Chorus defines struct msghdr in posix/sys/socket.h #define ACE_HAS_MSG -// TDN - adapted from file for SunOS4 platforms using the GNU g++ compiler -// Compiler's template mechanism must see source code (i.e., .C files). -#define ACE_TEMPLATES_REQUIRE_SOURCE - -#define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION - -// Compiler doesn't support static data member templates. -#define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES - // Yes, we do have threads. #define ACE_HAS_THREADS #define ACE_HAS_POSIX_SEM #define ACE_LACKS_NAMED_POSIX_SEM #define ACE_HAS_THREAD_SPECIFIC_STORAGE #if !defined (ACE_MT_SAFE) - #define ACE_MT_SAFE 1 +# define ACE_MT_SAFE 1 #endif // And they're even POSIX pthreads #define ACE_HAS_PTHREADS |