My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alloca.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org. If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #ifndef INCLUDED_SAL_ALLOCA_H
30 #define INCLUDED_SAL_ALLOCA_H
31 
32 #if defined (SOLARIS) || defined (LINUX) || defined(__EMX__) || defined(AIX) || defined(ANDROID)
33 
34 #ifndef INCLUDED_ALLOCA_H
35 #include <alloca.h>
36 #define INCLUDED_ALLOCA_H
37 #endif
38 
39 #elif defined (FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
40 
41 #ifndef INCLUDED_STDLIB_H
42 #include <stdlib.h>
43 #define INCLUDED_STDLIB_H
44 #endif
45 
46 #elif defined (MACOSX)
47 
48 #ifndef INCLUDED_SYS_TYPES_H
49 #include <sys/types.h>
50 #define INCLUDED_SYS_TYPES_H
51 #endif
52 
53 #elif defined (IOS)
54 
55 #ifndef INCLUDED_SYS_TYPES_H
56 #include <sys/types.h>
57 #define INCLUDED_SYS_TYPES_H
58 #endif
59 
60 #elif defined (WNT)
61 
62 #ifndef INCLUDED_MALLOC_H
63 #include <malloc.h>
64 #define INCLUDED_MALLOC_H
65 #endif
66 
67 #else
68 
69 #error "unknown platform: please check for alloca"
70 
71 #endif
72 
73 #endif /* INCLUDED_SAL_ALLOCA_H */
74 
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */