From b850e926fd1fec62f87073f325af985e0c506cfe Mon Sep 17 00:00:00 2001 From: levine Date: Mon, 2 Feb 1998 04:20:14 +0000 Subject: migrated to config-g++-common.h --- ace/config-lynxos.h | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'ace/config-lynxos.h') diff --git a/ace/config-lynxos.h b/ace/config-lynxos.h index 05261208ebb..4d840cea894 100644 --- a/ace/config-lynxos.h +++ b/ace/config-lynxos.h @@ -10,15 +10,18 @@ # define __ACE_INLINE__ #endif /* ! __ACE_INLINE__ */ +#if defined (__GNUG__) +# include "ace/config-g++-common.h" +#endif /* __GNUG__ */ + +#define ACE_HAS_STRING_CLASS + // System include files are not in sys/, this gets rid of warning. #define __NO_INCLUDE_WARN__ #define ACE_LACKS_GETOPT_PROTO #define ACE_HAS_STDARG_THR_DEST -#define ACE_HAS_STRING_CLASS -#define ACE_HAS_TEMPLATE_SPECIALIZATION - // ACE_HAS_EXCEPTIONS requires -fhandle-exceptions, but that gives // g++ 2.7.2 fits: it spits out all kinds of warnings that it doesn't // without that option (and that are just wrong), and runs out of @@ -26,13 +29,6 @@ // So until -fhandle-exceptions gets fixed, we can't use this with g++ . . . // #define ACE_HAS_EXCEPTIONS -// G++ doesn't support template typedefs fully (yet). -// #define ACE_HAS_TEMPLATE_TYPEDEFS - -// Must specialize templates due to G++'s lame parameterized type -// support... -#define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION - // Platform supports System V IPC (most versions of UNIX, but not Win32) #define ACE_HAS_SYSV_IPC @@ -48,16 +44,10 @@ // Platform supports reentrant functions (i.e., all the POSIX *_r functions). //#define ACE_HAS_REENTRANT_FUNCTIONS -// Compiler's template mechanism must see source code (i.e., .C files). -#define ACE_TEMPLATES_REQUIRE_SOURCE - // Denotes that GNU has cstring.h as standard // which redefines memchr() #define ACE_HAS_GNU_CSTRING_H -// Compiler doesn't support static data member templates. -#define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES - // Compiler/platform correctly calls init()/fini() for shared libraries. #define ACE_HAS_AUTOMATIC_INIT_FINI @@ -178,10 +168,6 @@ #define ACE_HAS_SIGWAIT #define ACE_LACKS_CONDATTR_PSHARED - -// Use the poll() event demultiplexor rather than select(). -//#define ACE_USE_POLL - // Turns off the tracing feature. #if !defined (ACE_NTRACE) # define ACE_NTRACE 1 @@ -192,7 +178,7 @@ // Defines the page size of the system. #define ACE_PAGE_SIZE 4096 -extern "C" +extern "C" { int getopt (int, char *const *, const char *); int putenv (const char *); -- cgit v1.2.1