diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Shared_Malloc/test_position_independent_malloc.cpp | 10 | ||||
-rw-r--r-- | examples/Shared_Malloc/test_position_independent_malloc.h | 18 |
2 files changed, 19 insertions, 9 deletions
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp index 1b62b6d184b..728fc158813 100644 --- a/examples/Shared_Malloc/test_position_independent_malloc.cpp +++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp @@ -6,6 +6,7 @@ #include "ace/Malloc.h" #include "ace/Based_Pointer_T.h" #include "ace/Synch.h" +#include "test_position_independent_malloc.h" ACE_RCSID(Shared_Malloc, test_multiple_mallocs, "$Id$") @@ -14,15 +15,6 @@ typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> MALLOC; // Default address for memory-mapped files. static void *base_addr = ACE_DEFAULT_BASE_ADDR; -// Some dummy data -struct Dummy_Data -{ - int i1_; - int i2_; - int i3_; - ACE_Based_Pointer<Dummy_Data> next_; -}; - #if 0 struct Long_Test { diff --git a/examples/Shared_Malloc/test_position_independent_malloc.h b/examples/Shared_Malloc/test_position_independent_malloc.h new file mode 100644 index 00000000000..2a1be383db0 --- /dev/null +++ b/examples/Shared_Malloc/test_position_independent_malloc.h @@ -0,0 +1,18 @@ +// $Id$ +// +// Define struct used in test_position_independent_malloc.cpp - needs to be in +// a separate file for template generation on AIX IBM C++. + +#ifndef __TEST_POSITION_INDEPENDENT_MALLOC_H +#define __TEST_POSITION_INDEPENDENT_MALLOC_H + +// Some dummy data +struct Dummy_Data +{ + int i1_; + int i2_; + int i3_; + ACE_Based_Pointer<Dummy_Data> next_; +}; + +#endif /* __TEST_POSITION_INDEPENDENT_MALLOC */ |