My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
config.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef _SAL_CONFIG_H_
21 #define _SAL_CONFIG_H_
22 
23 #ifndef INCLUDED_STDLIB_H
24 #include <stdlib.h>
25 #define INCLUDED_STDLIB_H
26 #endif
27 
28 #ifdef WIN32
29 #define SAL_W32
30 #define SAL_DLLEXTENSION ".dll"
31 #define SAL_PRGEXTENSION ".exe"
32 #define SAL_PATHSEPARATOR ';'
33 #define SAL_PATHDELIMITER '\\'
34 #define SAL_CONFIGFILE( name ) name ".ini"
35 
36 #ifdef _MSC_VER
37 
38 #ifndef _USE_MATH_DEFINES
39 #define _USE_MATH_DEFINES // needed by Visual C++ for math constants
40 #endif
41 
42 #endif /* defined _MSC_VER */
43 
44 /* Provide ISO C99 compatible versions of snprint and vsnprintf */
45 #ifdef __MINGW32__
46 #define _SNPRINTF_DLLIMPORT
47 #endif
48 #ifndef _SNPRINTF_H
49 #include <systools/win32/snprintf.h>
50 #endif
51 
52 #endif /* defined WIN32 */
53 
54 #if defined(SOLARIS) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \
55  defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID)
56 #define SAL_UNX
57 #define SAL_DLLEXTENSION ".so"
58 #define SAL_DLLPREFIX "lib"
59 #define SAL_PRGEXTENSION ".bin"
60 #define SAL_PATHSEPARATOR ':'
61 #define SAL_PATHDELIMITER '/'
62 #define SAL_CONFIGFILE( name ) name "rc"
63 #endif
64 
65 #ifdef MACOSX
66 #define SAL_UNX
67 #define SAL_DLLEXTENSION ".dylib"
68 #define SAL_DLLPREFIX "lib"
69 #define SAL_PRGEXTENSION ".bin"
70 #define SAL_PATHSEPARATOR ':'
71 #define SAL_PATHDELIMITER '/'
72 #define SAL_CONFIGFILE( name ) name "rc"
73 #endif
74 
75 #ifdef IOS
76 #define SAL_UNX
77 /* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are
78  * not allowed to load own dynamic libraries.
79  */
80 #define SAL_DLLEXTENSION ".dylib"
81 #define SAL_DLLPREFIX "lib"
82 /* This is fairly pointless too, an iOS app consists of a single
83  * executable (plus data files).
84  */
85 #define SAL_PRGEXTENSION ".bin"
86 #define SAL_PATHSEPARATOR ':'
87 #define SAL_PATHDELIMITER '/'
88 #define SAL_CONFIGFILE( name ) name "rc"
89 #endif
90 
91 #ifdef sun
92 #undef sun
93 #define sun sun
94 #endif
95 
96 #endif /*_SAL_CONFIG_H_ */
97 
98 
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */