X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_cdefs.h;h=9cf0277097f166e1ead43e83bd0d6a41f796c55a;hb=6d1ca0a769e5efca37b30fb4cffee669c2b04ad3;hp=fdb3f84784f752f2f2ce3bc2640a36e6a5446e03;hpb=159de0f1359459371c590ac770cc30edbade58d5;p=openldap diff --git a/include/ldap_cdefs.h b/include/ldap_cdefs.h index fdb3f84784..9cf0277097 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-2003 The OpenLDAP Foundation. + * Copyright 1998-2007 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -157,15 +157,6 @@ # define LDAP_AVL_V(type) extern type #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 -# define LDAP_LDBM_F(type) extern type -# define LDAP_LDBM_V(type) extern type -#endif - /* LDIF library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_LDIF_F(type) extern __declspec(dllimport) type @@ -211,6 +202,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