|
UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 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 /* INCLUDED_SAL_ALLOCA_H */ 00065 00066 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3