My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
sal
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
*
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 _SAL_CONFIG_H_
30
#define _SAL_CONFIG_H_
31
32
#ifndef INCLUDED_STDLIB_H
33
#include <stdlib.h>
34
#define INCLUDED_STDLIB_H
35
#endif
36
37
#ifdef WIN32
38
#define SAL_W32
39
#define SAL_DLLEXTENSION ".dll"
40
#define SAL_PRGEXTENSION ".exe"
41
#define SAL_PATHSEPARATOR ';'
42
#define SAL_PATHDELIMITER '\\'
43
#define SAL_CONFIGFILE( name ) name ".ini"
44
45
#ifdef _MSC_VER
46
47
#ifndef _USE_MATH_DEFINES
48
#define _USE_MATH_DEFINES // needed by Visual C++ for math constants
49
#endif
50
51
/* warnings ought to be disabled using /wd:n option of msvc.net compiler */
52
#if _MSC_VER < 1300
53
/* no performance warning: int to bool */
54
#pragma warning( disable : 4800 )
55
56
/* No warning for: C++ Exception Specification ignored */
57
#pragma warning( disable : 4290 )
58
59
#if OSL_DEBUG_LEVEL > 0
60
/* No warning for: identifier was truncated to '255' characters in the browser information */
61
#pragma warning( disable : 4786 )
62
#endif
63
#endif
/* defined _MSC_VER < 1300 */
64
65
#endif
/* defined _MSC_VER */
66
67
/* Provide ISO C99 compatible versions of snprint and vsnprintf */
68
#ifdef __MINGW32__
69
#define _SNPRINTF_DLLIMPORT
70
#endif
71
#ifndef _SNPRINTF_H
72
#include <systools/win32/snprintf.h>
73
#endif
74
75
#endif
/* defined WIN32 */
76
77
#if defined(SOLARIS) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \
78
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID)
79
#define SAL_UNX
80
#define SAL_DLLEXTENSION ".so"
81
#define SAL_DLLPREFIX "lib"
82
#define SAL_PRGEXTENSION ".bin"
83
#define SAL_PATHSEPARATOR ':'
84
#define SAL_PATHDELIMITER '/'
85
#define SAL_CONFIGFILE( name ) name "rc"
86
#endif
87
88
#ifdef MACOSX
89
#define SAL_UNX
90
#define SAL_DLLEXTENSION ".dylib"
91
#define SAL_DLLPREFIX "lib"
92
#define SAL_PRGEXTENSION ".bin"
93
#define SAL_PATHSEPARATOR ':'
94
#define SAL_PATHDELIMITER '/'
95
#define SAL_CONFIGFILE( name ) name "rc"
96
#endif
97
98
#ifdef IOS
99
#define SAL_UNX
100
/* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are
101
* not allowed to load own dynamic libraries.
102
*/
103
#define SAL_DLLEXTENSION ".dylib"
104
#define SAL_DLLPREFIX "lib"
105
/* This is fairly pointless too, an iOS app consists of a single
106
* executable (plus data files).
107
*/
108
#define SAL_PRGEXTENSION ".bin"
109
#define SAL_PATHSEPARATOR ':'
110
#define SAL_PATHDELIMITER '/'
111
#define SAL_CONFIGFILE( name ) name "rc"
112
#endif
113
114
#ifdef sun
115
#undef sun
116
#define sun sun
117
#endif
118
119
#endif
/*_SAL_CONFIG_H_ */
120
121
122
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Mon Oct 8 2012 00:36:42 for My Project by
1.8.1.2