su 1.12.10
|
00001 /* 00002 * This file is part of the Sofia-SIP package 00003 * 00004 * Copyright (C) 2005 Nokia Corporation. 00005 * 00006 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation; either version 2.1 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 * 00023 */ 00024 #ifndef SU_CONFIG_H 00025 00026 #define SU_CONFIG_H 00027 00038 #ifndef SU_CONFIGURE_H 00039 #include <sofia-sip/su_configure.h> 00040 #endif 00041 00042 #if defined(__GNUC__) 00043 /* Special attributes for GNU C */ 00044 #if __GNUC__ < 3 && (!defined(__GNUC_MINOR__) || __GNUC_MINOR__ < 96) 00045 #define __malloc__ /* avoid spurious warnigns */ 00046 #endif 00047 #elif !defined(__attribute__) 00048 # define __attribute__(x) 00049 #endif 00050 00051 /* C++ linkage needs to know that types and declarations are C, not C++. */ 00052 #if defined(__cplusplus) 00053 00054 # define SOFIA_BEGIN_DECLS extern "C" { 00055 00056 # define SOFIA_END_DECLS } 00057 #else 00058 # define SOFIA_BEGIN_DECLS 00059 # define SOFIA_END_DECLS 00060 #endif 00061 00062 /* ---------------------------------------------------------------------- */ 00063 /* Macros required by Win32 linkage */ 00064 00066 #define SOFIAPUBFUN 00067 00068 #define SOFIAPUBVAR extern 00069 00070 #define SOFIACALL 00071 00072 /* Win32 linkage */ 00073 00074 /* Windows platform with MS/Borland/Cygwin/MinGW32 compiler */ 00075 #if defined(_WIN32) && \ 00076 (defined(_MSC_VER) || defined(__BORLANDC__) || \ 00077 defined(__CYGWIN__) || defined(__MINGW32__)) 00078 #undef SOFIACALL 00079 #define SOFIACALL __cdecl 00080 00081 #if defined(LIBSOFIA_SIP_UA_STATIC) 00082 #else 00083 #undef SOFIAPUBFUN 00084 #undef SOFIAPUBVAR 00085 #if defined(IN_LIBSOFIA_SIP_UA) 00086 #define SOFIAPUBFUN __declspec(dllexport) 00087 #define SOFIAPUBVAR __declspec(dllexport) 00088 #else 00089 #define SOFIAPUBFUN __declspec(dllimport) 00090 #define SOFIAPUBVAR __declspec(dllimport) extern 00091 #endif 00092 #endif 00093 00094 #if !defined _REENTRANT 00095 #define _REENTRANT 00096 #endif 00097 #elif defined (SYMBIAN) 00098 #undef SOFIACALL 00099 #define SOFIACALL __cdecl 00100 00101 #if defined(LIBSOFIA_SIP_UA_STATIC) 00102 #else 00103 #undef SOFIAPUBFUN 00104 #undef SOFIAPUBVAR 00105 #if defined(IN_LIBSOFIA_SIP_UA) 00106 #define SOFIAPUBFUN __declspec(dllexport) 00107 #define SOFIAPUBVAR __declspec(dllexport) extern 00108 #else 00109 #define SOFIAPUBFUN __declspec(dllimport) 00110 #define SOFIAPUBVAR __declspec(dllimport) 00111 #endif 00112 #endif 00113 00114 #if !defined _REENTRANT 00115 #define _REENTRANT 00116 #endif 00117 #endif 00118 00119 00120 #define BNF_DLL SOFIAPUBFUN 00121 #define HTTP_DLL SOFIAPUBFUN 00122 #define IPT_DLL SOFIAPUBFUN 00123 #define AUTH_DLL SOFIAPUBFUN 00124 #define MSG_DLL SOFIAPUBFUN 00125 #define NEA_DLL SOFIAPUBFUN 00126 #define NTA_DLL SOFIAPUBFUN 00127 #define NTH_DLL SOFIAPUBFUN 00128 #define SDP_DLL SOFIAPUBFUN 00129 #define SIP_DLL SOFIAPUBFUN 00130 #define SU_DLL SOFIAPUBFUN 00131 #define TPORT_DLL SOFIAPUBFUN 00132 #define URL_DLL SOFIAPUBFUN 00133 #define MSG_TEST_DLL SOFIAPUBFUN 00134 00135 #endif /* SU_CONFIG_H */