|
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 _SAL_CONFIG_H_ 00021 #define _SAL_CONFIG_H_ 00022 00023 #ifndef INCLUDED_STDLIB_H 00024 #include <stdlib.h> 00025 #define INCLUDED_STDLIB_H 00026 #endif 00027 00028 #ifdef WIN32 00029 #define SAL_W32 00030 #define SAL_DLLEXTENSION ".dll" 00031 #define SAL_PRGEXTENSION ".exe" 00032 #define SAL_PATHSEPARATOR ';' 00033 #define SAL_PATHDELIMITER '\\' 00034 #define SAL_CONFIGFILE( name ) name ".ini" 00035 00036 #ifdef _MSC_VER 00037 00038 #ifndef _USE_MATH_DEFINES 00039 #define _USE_MATH_DEFINES // needed by Visual C++ for math constants 00040 #endif 00041 00042 #endif /* defined _MSC_VER */ 00043 00044 /* Provide ISO C99 compatible versions of snprint and vsnprintf */ 00045 #ifdef __MINGW32__ 00046 #define _SNPRINTF_DLLIMPORT 00047 #endif 00048 #ifndef _SNPRINTF_H 00049 #include <systools/win32/snprintf.h> 00050 #endif 00051 00052 #endif /* defined WIN32 */ 00053 00054 #if defined(SOLARIS) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \ 00055 defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID) 00056 #define SAL_UNX 00057 #define SAL_DLLEXTENSION ".so" 00058 #define SAL_DLLPREFIX "lib" 00059 #define SAL_PRGEXTENSION ".bin" 00060 #define SAL_PATHSEPARATOR ':' 00061 #define SAL_PATHDELIMITER '/' 00062 #define SAL_CONFIGFILE( name ) name "rc" 00063 #endif 00064 00065 #ifdef MACOSX 00066 #define SAL_UNX 00067 #define SAL_DLLEXTENSION ".dylib" 00068 #define SAL_DLLPREFIX "lib" 00069 #define SAL_PRGEXTENSION ".bin" 00070 #define SAL_PATHSEPARATOR ':' 00071 #define SAL_PATHDELIMITER '/' 00072 #define SAL_CONFIGFILE( name ) name "rc" 00073 #endif 00074 00075 #ifdef IOS 00076 #define SAL_UNX 00077 /* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are 00078 * not allowed to load own dynamic libraries. 00079 */ 00080 #define SAL_DLLEXTENSION ".dylib" 00081 #define SAL_DLLPREFIX "lib" 00082 /* This is fairly pointless too, an iOS app consists of a single 00083 * executable (plus data files). 00084 */ 00085 #define SAL_PRGEXTENSION ".bin" 00086 #define SAL_PATHSEPARATOR ':' 00087 #define SAL_PATHDELIMITER '/' 00088 #define SAL_CONFIGFILE( name ) name "rc" 00089 #endif 00090 00091 #ifdef sun 00092 #undef sun 00093 #define sun sun 00094 #endif 00095 00096 #endif /*_SAL_CONFIG_H_ */ 00097 00098 00099 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3