su
1.13.18
Toggle main menu visibility
Loading...
Searching...
No Matches
su_config.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Sofia-SIP package
3
*
4
* Copyright (C) 2005 Nokia Corporation.
5
*
6
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public License
10
* as published by the Free Software Foundation; either version 2.1 of
11
* the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
* 02110-1301 USA
22
*
23
*/
24
#ifndef SU_CONFIG_H
26
#define SU_CONFIG_H
37
38
#ifndef SU_CONFIGURE_H
39
#include <
sofia-sip/su_configure.h
>
40
#endif
41
42
#if defined(__GNUC__)
43
/* Special attributes for GNU C */
44
#if __GNUC__ < 3 && (!defined(__GNUC_MINOR__) || __GNUC_MINOR__ < 96)
45
#define __malloc__
/* avoid spurious warnigns */
46
#endif
47
#elif !defined(__attribute__)
48
# define __attribute__(x)
49
#endif
50
51
/* C++ linkage needs to know that types and declarations are C, not C++. */
52
#if defined(__cplusplus)
54
# define SOFIA_BEGIN_DECLS extern "C" {
56
# define SOFIA_END_DECLS }
57
#else
58
# define SOFIA_BEGIN_DECLS
59
# define SOFIA_END_DECLS
60
#endif
61
62
/* ---------------------------------------------------------------------- */
63
/* Macros required by Win32 linkage */
64
66
#define SOFIAPUBFUN
68
#define SOFIAPUBVAR extern
70
#define SOFIACALL
71
72
/* Win32 linkage */
73
74
/* Windows platform with MS/Borland/Cygwin/MinGW32 compiler */
75
#if defined(_WIN32) && \
76
(defined(_MSC_VER) || defined(__BORLANDC__) || \
77
defined(__CYGWIN__) || defined(__MINGW32__))
78
#undef SOFIACALL
79
#define SOFIACALL __cdecl
80
81
#if defined(LIBSOFIA_SIP_UA_STATIC)
82
#else
83
#undef SOFIAPUBFUN
84
#undef SOFIAPUBVAR
85
#if defined(IN_LIBSOFIA_SIP_UA)
86
#define SOFIAPUBFUN __declspec(dllexport)
87
#define SOFIAPUBVAR __declspec(dllexport) extern
88
#else
89
#define SOFIAPUBFUN __declspec(dllimport)
90
#define SOFIAPUBVAR __declspec(dllimport) extern
91
#endif
92
#endif
93
94
#if !defined _REENTRANT
95
#define _REENTRANT
96
#endif
97
#elif defined (SYMBIAN)
98
#undef SOFIACALL
99
#define SOFIACALL __cdecl
100
101
#if defined(LIBSOFIA_SIP_UA_STATIC)
102
#else
103
#undef SOFIAPUBFUN
104
#undef SOFIAPUBVAR
105
#if defined(IN_LIBSOFIA_SIP_UA)
106
#define SOFIAPUBFUN __declspec(dllexport)
107
#define SOFIAPUBVAR __declspec(dllexport) extern
108
#else
109
#define SOFIAPUBFUN __declspec(dllimport)
110
#define SOFIAPUBVAR __declspec(dllimport)
111
#endif
112
#endif
113
114
#if !defined _REENTRANT
115
#define _REENTRANT
116
#endif
117
#endif
118
119
120
#define BNF_DLL SOFIAPUBFUN
121
#define HTTP_DLL SOFIAPUBFUN
122
#define IPT_DLL SOFIAPUBFUN
123
#define AUTH_DLL SOFIAPUBFUN
124
#define MSG_DLL SOFIAPUBFUN
125
#define NEA_DLL SOFIAPUBFUN
126
#define NTA_DLL SOFIAPUBFUN
127
#define NTH_DLL SOFIAPUBFUN
128
#define SDP_DLL SOFIAPUBFUN
129
#define SIP_DLL SOFIAPUBFUN
130
#define SU_DLL SOFIAPUBFUN
131
#define TPORT_DLL SOFIAPUBFUN
132
#define URL_DLL SOFIAPUBFUN
133
#define MSG_TEST_DLL SOFIAPUBFUN
134
135
#endif
/* SU_CONFIG_H */
su_configure.h
Autoconf configuration for SU library.
Sofia-SIP 1.13.18 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.