From 5fd123136b6dfcd0a0919bcb0ff2d16ddeb2daa8 Mon Sep 17 00:00:00 2001 From: nanbor Date: Thu, 9 Dec 1999 21:56:38 +0000 Subject: ChangeLogTag:Thu Dec 09 15:53:20 1999 Nanbor Wang --- tests/Malloc_Test.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/Malloc_Test.cpp') diff --git a/tests/Malloc_Test.cpp b/tests/Malloc_Test.cpp index 765d6347f38..15c773e1425 100644 --- a/tests/Malloc_Test.cpp +++ b/tests/Malloc_Test.cpp @@ -32,7 +32,11 @@ USELIB("..\ace\aced.lib"); #if !defined (__Lynx__) && (!defined (ACE_LACKS_FORK) || defined (ACE_WIN32)) +#if defined (ACE_HAS_POSITION_INDEPENDENT_MALLOC) +typedef ACE_Malloc_T MALLOC; +#else typedef ACE_Malloc MALLOC; +#endif /* ACE_HAS_POSITION_INDEPENDENT_MALLOC */ #define MMAP_FILENAME ACE_TEXT ("test_file") #define MUTEX_NAME ACE_TEXT ("test_lock") @@ -326,9 +330,16 @@ main (int argc, ASYS_TCHAR *[]) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) +#if defined (ACE_HAS_POSITION_INDEPENDENT_MALLOC) +template class ACE_Malloc_T; +template class auto_ptr< ACE_Malloc_T >; +template class ACE_Auto_Basic_Ptr< ACE_Malloc_T >; +#else template class ACE_Malloc; +template class ACE_Malloc_T; template class auto_ptr< ACE_Malloc >; template class ACE_Auto_Basic_Ptr< ACE_Malloc >; +#endif /* ACE_HAS_POSITION_INDEPENDENT_MALLOC */ template class ACE_Write_Guard; template class ACE_Read_Guard; template class ACE_Based_Pointer; @@ -337,9 +348,16 @@ template class ACE_Based_Pointer_Basic; template class ACE_Based_Pointer_Basic; template class ACE_Based_Pointer; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +#if defined (ACE_HAS_POSITION_INDEPENDENT_MALLOC) +#pragma instantiate ACE_Malloc_T +#pragma instantiate auto_ptr< ACE_Malloc_T > +#pragma instantiate ACE_Auto_Basic_Ptr< ACE_Malloc_T >; +#else #pragma instantiate ACE_Malloc +#pragma instantiate ACE_Malloc_T #pragma instantiate auto_ptr< ACE_Malloc > #pragma instantiate ACE_Auto_Basic_Ptr< ACE_Malloc >; +#endif /* ACE_HAS_POSITION_INDEPENDENT_MALLOC */ #pragma instantiate ACE_Write_Guard #pragma instantiate ACE_Read_Guard #pragma instantiate ACE_Based_Pointer -- cgit v1.2.1