From 47afb9a4886dd3777624ff0bc2790c0c1919007f Mon Sep 17 00:00:00 2001 From: levine Date: Thu, 22 Jul 1999 19:23:48 +0000 Subject: ChangeLogTag: Thu Jul 22 14:22:41 1999 David L. Levine --- ChangeLog-99b | 6 ++++++ examples/Shared_Malloc/Malloc.cpp | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/ChangeLog-99b b/ChangeLog-99b index ce7fd4c2d76..dd3b8ea3c87 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,9 @@ +Thu Jul 22 14:22:41 1999 David L. Levine + + * examples/Shared_Malloc/Malloc.cpp: fixed explicit + template instantiations so that there are no duplications + with ACE_LACKS_SBRK and ACE_LACKS_SYSV_SHMEM. + Thu Jul 22 12:17:26 1999 David L. Levine * ace/config-lynxos.h: removed ACE_LACKS_FORK on PowerPC. diff --git a/examples/Shared_Malloc/Malloc.cpp b/examples/Shared_Malloc/Malloc.cpp index 474e4b6d8f3..510fbe729a9 100644 --- a/examples/Shared_Malloc/Malloc.cpp +++ b/examples/Shared_Malloc/Malloc.cpp @@ -57,8 +57,13 @@ Malloc::instance (void) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class ACE_Allocator_Adapter; template class ACE_Allocator_Adapter; +#if !defined (ACE_LACKS_SBRK) template class ACE_Allocator_Adapter; +template class ACE_Malloc ; +#endif /* ! ACE_LACKS_SBRK */ +#if !defined (ACE_LACKS_SYSV_SHMEM) template class ACE_Allocator_Adapter; +#endif /* ! ACE_LACKS_SYSV_SHMEM */ template class ACE_Allocator_Adapter; template class ACE_Malloc ; template class ACE_Malloc ; @@ -76,16 +81,16 @@ template class ACE_Malloc ; template class ACE_Malloc ; #endif /* ACE_LACKS_SYSV_SHMEM */ -#if defined (ACE_LACKS_SBRK) -template class ACE_Malloc ; -#else -template class ACE_Malloc ; -#endif /* ACE_LACKS_SBRK */ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate ACE_Allocator_Adapter #pragma instantiate ACE_Allocator_Adapter +#if !defined (ACE_LACKS_SBRK) #pragma instantiate ACE_Allocator_Adapter +#pragma instantiate ACE_Malloc +#endif /* ! ACE_LACKS_SYSV_SHMEM */ +#if !defined (ACE_LACKS_SBRK) #pragma instantiate ACE_Allocator_Adapter +#endif /* ! ACE_LACKS_SYSV_SHMEM */ #pragma instantiate ACE_Allocator_Adapter #pragma instantiate ACE_Malloc #pragma instantiate ACE_Malloc @@ -103,9 +108,4 @@ template class ACE_Malloc ; #pragma instantiate ACE_Malloc #endif /* ACE_LACKS_SYSV_SHMEM */ -#if defined (ACE_LACKS_SBRK) -#pragma instantiate ACE_Malloc -#else -#pragma instantiate ACE_Malloc -#endif /* ACE_LACKS_SBRK */ #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -- cgit v1.2.1