LibreOffice
LibreOffice 5.4 SDK 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
* 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 INCLUDED_SAL_CONFIG_H
21
#define INCLUDED_SAL_CONFIG_H
22
23
#if defined LIBO_INTERNAL_ONLY
24
#include "config_global.h"
25
#endif
26
27
#include <stdlib.h>
28
29
#ifdef _WIN32
30
#define SAL_W32
31
#define SAL_DLLEXTENSION ".dll"
32
#define SAL_EXEEXTENSION ".exe"
33
#define SAL_PATHSEPARATOR ';'
34
#define SAL_PATHDELIMITER '\\'
35
#define SAL_NEWLINE_STRING "\r\n"
36
#define SAL_CONFIGFILE( name ) name ".ini"
37
38
#ifdef _MSC_VER
39
40
#ifndef _USE_MATH_DEFINES
41
#define _USE_MATH_DEFINES // needed by Visual C++ for math constants
42
#endif
43
44
#endif
/* defined _MSC_VER */
45
46
#endif
/* defined WIN32 */
47
48
#if defined(__sun) || defined(LINUX) || defined(NETBSD) || defined(FREEBSD) || \
49
defined(AIX) || defined(OPENBSD) || defined(DRAGONFLY) || defined(ANDROID)
50
#define SAL_UNX
51
#define SAL_DLLEXTENSION ".so"
52
#define SAL_EXEEXTENSION ""
53
#define SAL_DLLPREFIX "lib"
54
#define SAL_PATHSEPARATOR ':'
55
#define SAL_PATHDELIMITER '/'
56
#define SAL_NEWLINE_STRING "\n"
57
#define SAL_CONFIGFILE( name ) name "rc"
58
#endif
59
60
#ifdef MACOSX
61
#define SAL_UNX
62
#define SAL_DLLEXTENSION ".dylib"
63
#define SAL_EXEEXTENSION ""
64
#define SAL_DLLPREFIX "lib"
65
#define SAL_PATHSEPARATOR ':'
66
#define SAL_PATHDELIMITER '/'
67
#define SAL_NEWLINE_STRING "\n"
68
#define SAL_CONFIGFILE( name ) name "rc"
69
#endif
70
71
#ifdef IOS
72
#define SAL_UNX
73
/* SAL_DLLEXTENSION should not really be used on iOS, as iOS apps are
74
* not allowed to load own dynamic libraries.
75
*/
76
#define SAL_DLLEXTENSION ".dylib"
77
#define SAL_DLLPREFIX "lib"
78
#define SAL_PATHSEPARATOR ':'
79
#define SAL_PATHDELIMITER '/'
80
#define SAL_NEWLINE_STRING "\n"
81
#define SAL_CONFIGFILE( name ) name "rc"
82
#endif
83
84
/* The following spell is for Solaris and its descendants.
85
* See the "Solaris" section of
86
* <http://sourceforge.net/p/predef/wiki/OperatingSystems/>, and
87
* <http://stackoverflow.com/questions/16618604/solaris-and-preprocessor-macros>.
88
*/
89
#ifdef sun
90
#undef sun
91
#define sun sun
92
#endif
93
94
#if defined __clang__
95
#if __has_warning("-Wpotentially-evaluated-expression")
96
#pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression"
97
#endif
98
#endif
99
100
#endif // INCLUDED_SAL_CONFIG_H
101
102
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated by
1.8.6