UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 00029 #ifndef INCLUDED_SAL_ALLOCA_H 00030 #define INCLUDED_SAL_ALLOCA_H 00031 00032 #if defined (SOLARIS) || defined (LINUX) || defined(__EMX__) || defined(AIX) || defined(ANDROID) 00033 00034 #ifndef INCLUDED_ALLOCA_H 00035 #include <alloca.h> 00036 #define INCLUDED_ALLOCA_H 00037 #endif 00038 00039 #elif defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY) 00040 00041 #ifndef INCLUDED_STDLIB_H 00042 #include <stdlib.h> 00043 #define INCLUDED_STDLIB_H 00044 #endif 00045 00046 #elif defined (MACOSX) 00047 00048 #ifndef INCLUDED_SYS_TYPES_H 00049 #include <sys/types.h> 00050 #define INCLUDED_SYS_TYPES_H 00051 #endif 00052 00053 #elif defined (IOS) 00054 00055 #ifndef INCLUDED_SYS_TYPES_H 00056 #include <sys/types.h> 00057 #define INCLUDED_SYS_TYPES_H 00058 #endif 00059 00060 #elif defined (WNT) 00061 00062 #ifndef INCLUDED_MALLOC_H 00063 #include <malloc.h> 00064 #define INCLUDED_MALLOC_H 00065 #endif 00066 00067 #else 00068 00069 #error "unknown platform: please check for alloca" 00070 00071 #endif 00072 00073 #endif /* INCLUDED_SAL_ALLOCA_H */ 00074 00075 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */