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 _SAL_CONFIG_H_ 00030 #define _SAL_CONFIG_H_ 00031 00032 #ifndef INCLUDED_STDLIB_H 00033 #include <stdlib.h> 00034 #define INCLUDED_STDLIB_H 00035 #endif 00036 00037 #ifdef WIN32 00038 #define SAL_W32 00039 #define SAL_DLLEXTENSION ".dll" 00040 #define SAL_PRGEXTENSION ".exe" 00041 #define SAL_PATHSEPARATOR ';' 00042 #define SAL_PATHDELIMITER '\\' 00043 #define SAL_CONFIGFILE( name ) name ".ini" 00044 00045 #ifdef _MSC_VER 00046 00047 #ifndef _USE_MATH_DEFINES 00048 #define _USE_MATH_DEFINES // needed by Visual C++ for math constants 00049 #endif 00050 00051 /* warnings ought to be disabled using /wd:n option of msvc.net compiler */ 00052 #if _MSC_VER < 1300 00053 /* no performance warning: int to bool */ 00054 #pragma warning( disable : 4800 ) 00055 00056 /* No warning for: C++ Exception Specification ignored */ 00057 #pragma warning( disable : 4290 ) 00058 00059 #if OSL_DEBUG_LEVEL > 0 00060 /* No warning for: identifier was truncated to '255' characters in the browser information */ 00061 #pragma warning( disable : 4786 ) 00062 #endif 00063 #endif /* defined _MSC_VER < 1300 */ 00064 00065 #endif /* defined _MSC_VER */ 00066 00067 /* Provide ISO C99 compatible versions of snprint and vsnprintf */ 00068 #ifdef __MINGW32__ 00069 #define _SNPRINTF_DLLIMPORT 00070 #endif 00071 #ifndef _SNPRINTF_H 00072 #include <systools/win32/snprintf.h> 00073 #endif 00074 00075 #endif /* defined WIN32 */ 00076 00077 #if defined(SOLARIS) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \ 00078 defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID) 00079 #define SAL_UNX 00080 #define SAL_DLLEXTENSION ".so" 00081 #define SAL_DLLPREFIX "lib" 00082 #define SAL_PRGEXTENSION ".bin" 00083 #define SAL_PATHSEPARATOR ':' 00084 #define SAL_PATHDELIMITER '/' 00085 #define SAL_CONFIGFILE( name ) name "rc" 00086 #endif 00087 00088 #ifdef MACOSX 00089 #define SAL_UNX 00090 #define SAL_DLLEXTENSION ".dylib" 00091 #define SAL_DLLPREFIX "lib" 00092 #define SAL_PRGEXTENSION ".bin" 00093 #define SAL_PATHSEPARATOR ':' 00094 #define SAL_PATHDELIMITER '/' 00095 #define SAL_CONFIGFILE( name ) name "rc" 00096 #endif 00097 00098 #ifdef IOS 00099 #define SAL_UNX 00100 /* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are 00101 * not allowed to load own dynamic libraries. 00102 */ 00103 #define SAL_DLLEXTENSION ".dylib" 00104 #define SAL_DLLPREFIX "lib" 00105 /* This is fairly pointless too, an iOS app consists of a single 00106 * executable (plus data files). 00107 */ 00108 #define SAL_PRGEXTENSION ".bin" 00109 #define SAL_PATHSEPARATOR ':' 00110 #define SAL_PATHDELIMITER '/' 00111 #define SAL_CONFIGFILE( name ) name "rc" 00112 #endif 00113 00114 #ifdef sun 00115 #undef sun 00116 #define sun sun 00117 #endif 00118 00119 #endif /*_SAL_CONFIG_H_ */ 00120 00121 00122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */