diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-30 03:11:47 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-30 03:11:47 +0000 |
commit | 8f74f914d2418a337b00408a26ad95566ecbcb03 (patch) | |
tree | 6d46a05455dd66eb614292289b1469c321f438a6 /ace | |
parent | 49fcd02be17629c58293215da377f2db9099f62c (diff) | |
download | ATCD-8f74f914d2418a337b00408a26ad95566ecbcb03.tar.gz |
only use the null versions of the ACE_DES_FREE_TEMPLATE* macros with LynxOS 3.0.0
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.h | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -5380,18 +5380,19 @@ private: do { POINTER->CLASS::~CLASS (); DEALLOCATOR (POINTER); } while (0) #define ACE_DES_NOFREE_TEMPLATE (POINTER,T_CLASS,T_PARAMETER) \ POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS () -#if defined (__Lynx__) -#define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) -#define ACE_DES_FREE_TEMPLATE2(POINTER,DEALLOCATOR,T_CLASS,T_PARAM1,T_PARAM2) +#if defined (__Lynx__) && __LYNXOS_SDK_VERSION == 199701L + // LynxOS 3.0.0's g++ has trouble with the real versions of these. +# define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) +# define ACE_DES_FREE_TEMPLATE2(POINTER,DEALLOCATOR,T_CLASS,T_PARAM1,T_PARAM2) #else -#define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) \ - do { POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS (); \ - DEALLOCATOR (POINTER); \ - } while (0) -#define ACE_DES_FREE_TEMPLATE2(POINTER,DEALLOCATOR,T_CLASS,T_PARAM1,T_PARAM2) \ - do { POINTER-> T_CLASS <T_PARAM1, T_PARAM2> ::~ T_CLASS (); \ - DEALLOCATOR (POINTER); \ - } while (0) +# define ACE_DES_FREE_TEMPLATE(POINTER,DEALLOCATOR,T_CLASS,T_PARAMETER) \ + do { POINTER-> T_CLASS T_PARAMETER ::~ T_CLASS (); \ + DEALLOCATOR (POINTER); \ + } while (0) +# define ACE_DES_FREE_TEMPLATE2(POINTER,DEALLOCATOR,T_CLASS,T_PARAM1,T_PARAM2) \ + do { POINTER-> T_CLASS <T_PARAM1, T_PARAM2> ::~ T_CLASS (); \ + DEALLOCATOR (POINTER); \ + } while (0) #endif #if defined (ACE_HAS_SIGNAL_SAFE_OS_CALLS) |