X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_cdefs.h;h=265dbcfb2606c7a5cd2cfb7be11613f26fec91b4;hb=8c3e9ddb1cb2f1f23ef9af3f4cd398f8d284e9f2;hp=d25883f9de734653faf985507c6139c456c9b44d;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap diff --git a/include/ldap_cdefs.h b/include/ldap_cdefs.h index d25883f9de..265dbcfb26 100644 --- a/include/ldap_cdefs.h +++ b/include/ldap_cdefs.h @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2005 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -158,13 +158,9 @@ #endif /* LDBM library */ -#if defined(_WIN32) && defined(SLAPD_IMPORT) -# define LDAP_LDBM_F(type) extern __declspec(dllimport) type -# define LDAP_LDBM_V(type) extern __declspec(dllimport) type -#else +/* Not exported/imported any more */ # define LDAP_LDBM_F(type) extern type # define LDAP_LDBM_V(type) extern type -#endif /* LDIF library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) @@ -211,6 +207,24 @@ # define LDAP_SLAPD_V(type) extern type #endif +/* SLAPD (as a dynamic library exporting symbols) */ +#if defined(_WIN32) && defined(SLAPD_IMPORT) +# define LDAP_SLAPI_F(type) extern __declspec(dllimport) type +# define LDAP_SLAPI_V(type) extern __declspec(dllimport) type +#else +# define LDAP_SLAPI_F(type) extern type +# define LDAP_SLAPI_V(type) extern type +#endif + +/* SLAPD (as a dynamic library exporting symbols) */ +#if defined(_WIN32) && defined(SLAPD_IMPORT) +# define SLAPI_F(type) extern __declspec(dllimport) type +# define SLAPI_V(type) extern __declspec(dllimport) type +#else +# define SLAPI_F(type) extern type +# define SLAPI_V(type) extern type +#endif + /* * C library. Mingw32 links with the dynamic C run-time library by default, * so the explicit definition of CSTATIC will keep dllimport from