1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SAL_CONFIG_H
21 #define INCLUDED_SAL_CONFIG_H
23 #if defined LIBO_INTERNAL_ONLY && defined ANDROID && defined __cplusplus
24 #include <android/compatibility.hxx>
29 #define SAL_DLLEXTENSION ".dll"
30 #define SAL_EXEEXTENSION ".exe"
31 #define SAL_PATHSEPARATOR ';'
32 #define SAL_PATHDELIMITER '\\'
33 #define SAL_NEWLINE_STRING "\r\n"
34 #define SAL_CONFIGFILE( name ) name ".ini"
38 #ifndef _USE_MATH_DEFINES
39 #define _USE_MATH_DEFINES // needed by Visual C++ for math constants
42 #endif /* defined _MSC_VER */
44 #endif /* defined _WIN32 */
46 #if defined(__sun) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \
47 defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID) || \
50 #define SAL_DLLEXTENSION ".so"
51 #define SAL_EXEEXTENSION ""
52 #define SAL_DLLPREFIX "lib"
53 #define SAL_PATHSEPARATOR ':'
54 #define SAL_PATHDELIMITER '/'
55 #define SAL_NEWLINE_STRING "\n"
56 #define SAL_CONFIGFILE( name ) name "rc"
61 #define SAL_DLLEXTENSION ".dylib"
62 #define SAL_EXEEXTENSION ""
63 #define SAL_DLLPREFIX "lib"
64 #define SAL_PATHSEPARATOR ':'
65 #define SAL_PATHDELIMITER '/'
66 #define SAL_NEWLINE_STRING "\n"
67 #define SAL_CONFIGFILE( name ) name "rc"
72 /* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are
73 * not allowed to load own dynamic libraries.
75 #define SAL_DLLEXTENSION ".dylib"
76 #define SAL_DLLPREFIX "lib"
77 #define SAL_PATHSEPARATOR ':'
78 #define SAL_PATHDELIMITER '/'
79 #define SAL_NEWLINE_STRING "\n"
80 #define SAL_CONFIGFILE( name ) name "rc"
83 /* The following spell is for Solaris and its descendants.
84 * See the "Solaris" section of
85 * <http://sourceforge.net/p/predef/wiki/OperatingSystems/>, and
86 * <http://stackoverflow.com/questions/16618604/solaris-and-preprocessor-macros>.
94 #if __has_warning("-Wpotentially-evaluated-expression")
95 #pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression"
99 #endif // INCLUDED_SAL_CONFIG_H
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */