X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_cdefs.h;h=d759d6b11c121cc5fbeb34abce81bca5126bc818;hb=dd24ca4ec8c051d252c7d3aa7673531e8bfbb443;hp=8993bb13894bb22ca7a52642b7bc12af96863c6f;hpb=05723d2a3def617a3e986248c28a5b5ba0b4b281;p=openldap diff --git a/include/ldap_cdefs.h b/include/ldap_cdefs.h index 8993bb1389..d759d6b11c 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-2011 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -157,11 +157,6 @@ # define LDAP_AVL_V(type) extern type #endif -/* LDBM library */ -/* Not exported/imported any more */ -# define LDAP_LDBM_F(type) extern type -# define LDAP_LDBM_V(type) extern type - /* LDIF library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_LDIF_F(type) extern __declspec(dllimport) type @@ -207,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