00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef INCLUDED_SAL_ALLOCA_H
00021 #define INCLUDED_SAL_ALLOCA_H
00022
00023 #if defined (SOLARIS) || defined (LINUX) || defined(__EMX__) || defined(AIX) || defined(ANDROID)
00024
00025 #ifndef INCLUDED_ALLOCA_H
00026 #include <alloca.h>
00027 #define INCLUDED_ALLOCA_H
00028 #endif
00029
00030 #elif defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
00031
00032 #ifndef INCLUDED_STDLIB_H
00033 #include <stdlib.h>
00034 #define INCLUDED_STDLIB_H
00035 #endif
00036
00037 #elif defined (MACOSX)
00038
00039 #ifndef INCLUDED_SYS_TYPES_H
00040 #include <sys/types.h>
00041 #define INCLUDED_SYS_TYPES_H
00042 #endif
00043
00044 #elif defined (IOS)
00045
00046 #ifndef INCLUDED_SYS_TYPES_H
00047 #include <sys/types.h>
00048 #define INCLUDED_SYS_TYPES_H
00049 #endif
00050
00051 #elif defined (WNT)
00052
00053 #ifndef INCLUDED_MALLOC_H
00054 #include <malloc.h>
00055 #define INCLUDED_MALLOC_H
00056 #endif
00057
00058 #else
00059
00060 #error "unknown platform: please check for alloca"
00061
00062 #endif
00063
00064 #endif
00065
00066