diff options
Diffstat (limited to 'ace/OS_Memory.h')
-rw-r--r-- | ace/OS_Memory.h | 59 |
1 files changed, 16 insertions, 43 deletions
diff --git a/ace/OS_Memory.h b/ace/OS_Memory.h index 1b115230dcc..d8165755388 100644 --- a/ace/OS_Memory.h +++ b/ace/OS_Memory.h @@ -27,12 +27,7 @@ #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "ace/OS_Export.h" -#if defined (ACE_HAS_PACE) -# include "pace/stddef.h" -# include "pace/stdlib.h" -#else -# include /**/ <stddef.h> -#endif /* ACE_HAS_PACE */ +#include /**/ <stddef.h> # if !defined (ACE_MALLOC_ALIGN) # define ACE_MALLOC_ALIGN ((int) sizeof (long)) @@ -58,47 +53,25 @@ // too, so that you guarantee that strdup() calls your desired mallocator // and not the system mallocator. // -# if defined (ACE_HAS_PACE) -# if !defined (ACE_MALLOC_FUNC) -# define ACE_MALLOC_FUNC pace_malloc -# endif -# if !defined (ACE_CALLOC_FUNC) -# define ACE_CALLOC_FUNC pace_calloc -# endif -# if !defined (ACE_FREE_FUNC) -# define ACE_FREE_FUNC pace_free -# endif -# if !defined (ACE_REALLOC_FUNC) -# define ACE_REALLOC_FUNC pace_realloc -# endif +# if !defined (ACE_MALLOC_FUNC) +# define ACE_MALLOC_FUNC ::malloc +# endif +# if !defined (ACE_CALLOC_FUNC) +# define ACE_CALLOC_FUNC ::calloc +# endif +# if !defined (ACE_FREE_FUNC) +# define ACE_FREE_FUNC ::free +# endif +# if !defined (ACE_REALLOC_FUNC) +# define ACE_REALLOC_FUNC ::realloc +# endif -# if defined (ACE_HAS_OLD_MALLOC) +# if defined (ACE_HAS_OLD_MALLOC) typedef char *ACE_MALLOC_T; -# else -typedef void *ACE_MALLOC_T; -# endif /* ACE_HAS_OLD_MALLOC */ - # else - -# if !defined (ACE_MALLOC_FUNC) -# define ACE_MALLOC_FUNC ::malloc -# endif -# if !defined (ACE_CALLOC_FUNC) -# define ACE_CALLOC_FUNC ::calloc -# endif -# if !defined (ACE_FREE_FUNC) -# define ACE_FREE_FUNC ::free -# endif -# if !defined (ACE_REALLOC_FUNC) -# define ACE_REALLOC_FUNC ::realloc -# endif - -# if defined (ACE_HAS_OLD_MALLOC) -typedef char *ACE_MALLOC_T; -# else typedef void *ACE_MALLOC_T; -# endif /* ACE_HAS_OLD_MALLOC */ -#endif /* ACE_HAS_PACE */ +# endif /* ACE_HAS_OLD_MALLOC */ + class ACE_OS_Export ACE_OS_Memory // = TITLE |