From: Guenter Knauf Date: Sun, 1 Aug 2010 23:24:04 +0000 (+0200) Subject: Moved the LDAP API defines from Makefile.Watcom to config-win32.h. X-Git-Tag: curl-7_21_1~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b01fb30f9cf9f456be59381adbbac24fb98c30d0;p=thirdparty%2Fcurl.git Moved the LDAP API defines from Makefile.Watcom to config-win32.h. These defines are only needed for older Watcom versions (< 1280). --- diff --git a/lib/Makefile.Watcom b/lib/Makefile.Watcom index c098e5d697..1f4d075f8e 100644 --- a/lib/Makefile.Watcom +++ b/lib/Makefile.Watcom @@ -32,7 +32,6 @@ CP = copy CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm & -wcd=201 -bt=nt -d+ -dWIN32 -dCURL_WANTS_CA_BUNDLE_ENV & -dBUILDING_LIBCURL -dHAVE_SPNEGO=1 -I. -I..\include $(SYS_INCL) -#CFLAGS += -dWINBERAPI=__declspec(cdecl) -dWINLDAPAPI=__declspec(cdecl) !ifdef %debug DEBUG = -dDEBUG=1 -dDEBUGBUILD diff --git a/lib/config-win32.h b/lib/config-win32.h index 7d0f8c60bc..5ee76065d8 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -550,6 +550,13 @@ #define CURL_LDAP_WIN 1 #endif +#if defined(__WATCOMC__) && defined(CURL_LDAP_WIN) +#if __WATCOMC__ < 1280 +#define WINBERAPI __declspec(cdecl) +#define WINLDAPAPI __declspec(cdecl) +#endif +#endif + #if defined(__POCC__) && defined(CURL_LDAP_WIN) # define CURL_DISABLE_LDAP 1 #endif