00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef _STLP_DEFALLOC_H
00033 #define _STLP_DEFALLOC_H
00034
00035 # ifndef _STLP_OUTERMOST_HEADER_ID
00036 # define _STLP_OUTERMOST_HEADER_ID 0xa005
00037 # include <stl/_prolog.h>
00038 # endif
00039
00040 # if defined (_STLP_DEBUG) && ! defined ( _STLP_DEBUG_H )
00041 # include <stl/debug/_debug.h>
00042 # endif
00043
00044 #if defined (_STLP_USE_NEW_STYLE_HEADERS)
00045 # include <cstddef>
00046 # include <cstdlib>
00047 # include <cstring>
00048 # include <cassert>
00049 #else
00050 # include <stddef.h>
00051 # include <stdlib.h>
00052 # include <string.h>
00053 # include <assert.h>
00054 #endif
00055
00056 # include <new>
00057
00058 #ifdef _STLP_THREADS
00059 # include <stl/_threads.h>
00060 #endif
00061
00062 # if !defined (__THROW_BAD_ALLOC) && !defined(_STLP_USE_EXCEPTIONS)
00063 # if defined (_STLP_USE_NEW_STYLE_HEADERS)
00064 # include <cstdio>
00065 # else
00066 # include <stdio.h>
00067 # endif
00068 # endif
00069 # include <stl/_alloc.h>
00070
00071
00072
00073 #ifdef _STLP_USE_NAMESPACES
00074 # ifdef _STLP_BROKEN_USING_DIRECTIVE
00075 using namespace STLPORT;
00076 # else
00077 using STLPORT::allocator;
00078 # endif
00079 #endif
00080
00081 # if (_STLP_OUTERMOST_HEADER_ID == 0xa005)
00082 # include <stl/_epilog.h>
00083 # undef _STLP_OUTERMOST_HEADER_ID
00084 # endif
00085
00086 #endif
00087