Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
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 
00044 #if __GNUC__ < 3 && (!defined(__GNUC_MINOR__) || __GNUC_MINOR__ < 96)
00045 #define __malloc__              
00046 #endif
00047 #elif !defined(__attribute__)
00048 #  define __attribute__(x)
00049 #endif
00050 
00051 
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 
00064 
00066 #define SOFIAPUBFUN
00067 
00068 #define SOFIAPUBVAR extern
00069 
00070 #define SOFIACALL
00071 
00072 
00073 
00074 
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) extern
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