SM0 She11
Path:
/
/
usr
/
include
Full Path (server): /usr/include
Create Fil3
Upl04d Fil3
📄 FlexLexer.h
[E]
[D]
[R]
📁 GL
Open
[D]
[R]
📁 ImageMagick-6
Open
[D]
[R]
📁 X11
Open
[D]
[R]
📄 _G_config.h
[E]
[D]
[R]
📄 a.out.h
[E]
[D]
[R]
📄 aio.h
[E]
[D]
[R]
📄 aliases.h
[E]
[D]
[R]
📄 alloca.h
[E]
[D]
[R]
📁 apr-1
Open
[D]
[R]
📄 ar.h
[E]
[D]
[R]
📄 argon2.h
[E]
[D]
[R]
📄 argp.h
[E]
[D]
[R]
📄 argz.h
[E]
[D]
[R]
📁 arpa
Open
[D]
[R]
📁 asm
Open
[D]
[R]
📁 asm-generic
Open
[D]
[R]
📄 aspell.h
[E]
[D]
[R]
📄 assert.h
[E]
[D]
[R]
📁 bits
Open
[D]
[R]
📄 buffio.h
[E]
[D]
[R]
📄 byteswap.h
[E]
[D]
[R]
📄 bzlib.h
[E]
[D]
[R]
📁 c++
Open
[D]
[R]
📄 com_err.h
[E]
[D]
[R]
📄 complex.h
[E]
[D]
[R]
📄 cpio.h
[E]
[D]
[R]
📄 cpufreq.h
[E]
[D]
[R]
📄 crypt.h
[E]
[D]
[R]
📄 ctype.h
[E]
[D]
[R]
📁 curl
Open
[D]
[R]
📄 curses.h
[E]
[D]
[R]
📄 cursesapp.h
[E]
[D]
[R]
📄 cursesf.h
[E]
[D]
[R]
📄 cursesm.h
[E]
[D]
[R]
📄 cursesp.h
[E]
[D]
[R]
📄 cursesw.h
[E]
[D]
[R]
📄 cursslk.h
[E]
[D]
[R]
📄 db.h
[E]
[D]
[R]
📄 db_185.h
[E]
[D]
[R]
📄 dbm.h
[E]
[D]
[R]
📄 dirent.h
[E]
[D]
[R]
📄 dlfcn.h
[E]
[D]
[R]
📁 drm
Open
[D]
[R]
📄 dwarf.h
[E]
[D]
[R]
📄 ecpg_config.h
[E]
[D]
[R]
📄 ecpg_config_x86_64.h
[E]
[D]
[R]
📄 ecpg_informix.h
[E]
[D]
[R]
📄 ecpgerrno.h
[E]
[D]
[R]
📄 ecpglib.h
[E]
[D]
[R]
📄 ecpgtype.h
[E]
[D]
[R]
📁 editline
Open
[D]
[R]
📄 elf.h
[E]
[D]
[R]
📁 elfutils
Open
[D]
[R]
📁 enchant
Open
[D]
[R]
📄 endian.h
[E]
[D]
[R]
📄 envz.h
[E]
[D]
[R]
📄 err.h
[E]
[D]
[R]
📄 errno.h
[E]
[D]
[R]
📄 error.h
[E]
[D]
[R]
📁 et
Open
[D]
[R]
📄 eti.h
[E]
[D]
[R]
📄 etip.h
[E]
[D]
[R]
📄 execinfo.h
[E]
[D]
[R]
📄 expat.h
[E]
[D]
[R]
📄 expat_external.h
[E]
[D]
[R]
📄 fcntl.h
[E]
[D]
[R]
📄 features.h
[E]
[D]
[R]
📄 fenv.h
[E]
[D]
[R]
📄 fmtmsg.h
[E]
[D]
[R]
📄 fnmatch.h
[E]
[D]
[R]
📄 form.h
[E]
[D]
[R]
📄 fpu_control.h
[E]
[D]
[R]
📁 freetype2
Open
[D]
[R]
📄 fstab.h
[E]
[D]
[R]
📄 fts.h
[E]
[D]
[R]
📄 ftw.h
[E]
[D]
[R]
📄 gconv.h
[E]
[D]
[R]
📄 gcrypt-module.h
[E]
[D]
[R]
📄 gcrypt.h
[E]
[D]
[R]
📁 gdbm
Open
[D]
[R]
📄 gdbm.h
[E]
[D]
[R]
📄 gelf.h
[E]
[D]
[R]
📄 getopt.h
[E]
[D]
[R]
📁 ghostscript
Open
[D]
[R]
📁 gio-unix-2.0
Open
[D]
[R]
📁 glib-2.0
Open
[D]
[R]
📄 glob.h
[E]
[D]
[R]
📄 gmp-mparam-x86_64.h
[E]
[D]
[R]
📄 gmp-mparam.h
[E]
[D]
[R]
📄 gmp-x86_64.h
[E]
[D]
[R]
📄 gmp.h
[E]
[D]
[R]
📄 gmpxx.h
[E]
[D]
[R]
📁 gnu
Open
[D]
[R]
📄 gnu-versions.h
[E]
[D]
[R]
📄 gpg-error.h
[E]
[D]
[R]
📄 grp.h
[E]
[D]
[R]
📄 gshadow.h
[E]
[D]
[R]
📁 gssapi
Open
[D]
[R]
📄 gssapi.h
[E]
[D]
[R]
📁 gssrpc
Open
[D]
[R]
📄 histedit.h
[E]
[D]
[R]
📄 iconv.h
[E]
[D]
[R]
📄 ieee754.h
[E]
[D]
[R]
📄 ifaddrs.h
[E]
[D]
[R]
📁 ijs
Open
[D]
[R]
📁 imap
Open
[D]
[R]
📄 inttypes.h
[E]
[D]
[R]
📁 jasper
Open
[D]
[R]
📄 jconfig.h
[E]
[D]
[R]
📄 jerror.h
[E]
[D]
[R]
📄 jmorecfg.h
[E]
[D]
[R]
📄 jpeglib.h
[E]
[D]
[R]
📁 kadm5
Open
[D]
[R]
📄 kdb.h
[E]
[D]
[R]
📄 keyutils.h
[E]
[D]
[R]
📄 krad.h
[E]
[D]
[R]
📁 krb5
Open
[D]
[R]
📄 krb5.h
[E]
[D]
[R]
📄 langinfo.h
[E]
[D]
[R]
📄 lastlog.h
[E]
[D]
[R]
📁 layout
Open
[D]
[R]
📄 lber.h
[E]
[D]
[R]
📄 lber_types.h
[E]
[D]
[R]
📄 ldap.h
[E]
[D]
[R]
📄 ldap_cdefs.h
[E]
[D]
[R]
📄 ldap_features.h
[E]
[D]
[R]
📄 ldap_schema.h
[E]
[D]
[R]
📄 ldap_utf8.h
[E]
[D]
[R]
📄 ldif.h
[E]
[D]
[R]
📁 libdb
Open
[D]
[R]
📁 libdb4
Open
[D]
[R]
📄 libelf.h
[E]
[D]
[R]
📁 libexslt
Open
[D]
[R]
📄 libgen.h
[E]
[D]
[R]
📄 libintl.h
[E]
[D]
[R]
📄 libio.h
[E]
[D]
[R]
📁 libltdl
Open
[D]
[R]
📁 libpng15
Open
[D]
[R]
📁 libpq
Open
[D]
[R]
📄 libpq-events.h
[E]
[D]
[R]
📄 libpq-fe.h
[E]
[D]
[R]
📁 libxml2
Open
[D]
[R]
📁 libxslt
Open
[D]
[R]
📄 limits.h
[E]
[D]
[R]
📄 link.h
[E]
[D]
[R]
📁 linux
Open
[D]
[R]
📄 locale.h
[E]
[D]
[R]
📄 ltdl.h
[E]
[D]
[R]
📁 lzma
Open
[D]
[R]
📄 lzma.h
[E]
[D]
[R]
📄 malloc.h
[E]
[D]
[R]
📄 math.h
[E]
[D]
[R]
📄 mcheck.h
[E]
[D]
[R]
📄 mcrypt.h
[E]
[D]
[R]
📄 memory.h
[E]
[D]
[R]
📄 menu.h
[E]
[D]
[R]
📁 misc
Open
[D]
[R]
📄 mntent.h
[E]
[D]
[R]
📄 monetary.h
[E]
[D]
[R]
📄 mqueue.h
[E]
[D]
[R]
📁 mtd
Open
[D]
[R]
📁 mutils
Open
[D]
[R]
📁 mysql
Open
[D]
[R]
📄 nc_tparm.h
[E]
[D]
[R]
📁 ncurses
Open
[D]
[R]
📄 ncurses.h
[E]
[D]
[R]
📄 ncurses_dll.h
[E]
[D]
[R]
📁 ncursesw
Open
[D]
[R]
📄 ndbm.h
[E]
[D]
[R]
📁 net
Open
[D]
[R]
📁 net-snmp
Open
[D]
[R]
📁 netash
Open
[D]
[R]
📁 netatalk
Open
[D]
[R]
📁 netax25
Open
[D]
[R]
📄 netdb.h
[E]
[D]
[R]
📁 neteconet
Open
[D]
[R]
📁 netinet
Open
[D]
[R]
📁 netipx
Open
[D]
[R]
📁 netiucv
Open
[D]
[R]
📁 netpacket
Open
[D]
[R]
📁 netrom
Open
[D]
[R]
📁 netrose
Open
[D]
[R]
📁 nfs
Open
[D]
[R]
📄 nl_types.h
[E]
[D]
[R]
📄 nlist.h
[E]
[D]
[R]
📄 nss.h
[E]
[D]
[R]
📄 obstack.h
[E]
[D]
[R]
📄 oniggnu.h
[E]
[D]
[R]
📄 onigposix.h
[E]
[D]
[R]
📄 oniguruma.h
[E]
[D]
[R]
📁 openssl
Open
[D]
[R]
📄 panel.h
[E]
[D]
[R]
📄 paths.h
[E]
[D]
[R]
📄 pcre.h
[E]
[D]
[R]
📄 pcre_scanner.h
[E]
[D]
[R]
📄 pcre_stringpiece.h
[E]
[D]
[R]
📄 pcrecpp.h
[E]
[D]
[R]
📄 pcrecpparg.h
[E]
[D]
[R]
📄 pcreposix.h
[E]
[D]
[R]
📄 pg_config.h
[E]
[D]
[R]
📄 pg_config_manual.h
[E]
[D]
[R]
📄 pg_config_os.h
[E]
[D]
[R]
📄 pg_config_x86_64.h
[E]
[D]
[R]
📁 pgsql
Open
[D]
[R]
📄 pgtypes_date.h
[E]
[D]
[R]
📄 pgtypes_error.h
[E]
[D]
[R]
📄 pgtypes_interval.h
[E]
[D]
[R]
📄 pgtypes_numeric.h
[E]
[D]
[R]
📄 pgtypes_timestamp.h
[E]
[D]
[R]
📄 platform.h
[E]
[D]
[R]
📄 png.h
[E]
[D]
[R]
📄 pngconf.h
[E]
[D]
[R]
📄 pnglibconf.h
[E]
[D]
[R]
📄 poll.h
[E]
[D]
[R]
📄 popt.h
[E]
[D]
[R]
📄 postgres_ext.h
[E]
[D]
[R]
📄 printf.h
[E]
[D]
[R]
📄 profile.h
[E]
[D]
[R]
📁 protocols
Open
[D]
[R]
📁 pspell
Open
[D]
[R]
📄 pthread.h
[E]
[D]
[R]
📄 pty.h
[E]
[D]
[R]
📄 pwd.h
[E]
[D]
[R]
📁 python2.7
Open
[D]
[R]
📁 python3.6m
Open
[D]
[R]
📁 rdma
Open
[D]
[R]
📄 re_comp.h
[E]
[D]
[R]
📁 readline
Open
[D]
[R]
📄 recode.h
[E]
[D]
[R]
📄 recodext.h
[E]
[D]
[R]
📄 regex.h
[E]
[D]
[R]
📄 regexp.h
[E]
[D]
[R]
📄 resolv.h
[E]
[D]
[R]
📁 rpc
Open
[D]
[R]
📁 rpcsvc
Open
[D]
[R]
📁 rpm
Open
[D]
[R]
📁 sasl
Open
[D]
[R]
📄 sched.h
[E]
[D]
[R]
📁 scsi
Open
[D]
[R]
📄 search.h
[E]
[D]
[R]
📁 selinux
Open
[D]
[R]
📄 semaphore.h
[E]
[D]
[R]
📁 sensors
Open
[D]
[R]
📁 sepol
Open
[D]
[R]
📄 setjmp.h
[E]
[D]
[R]
📄 sgtty.h
[E]
[D]
[R]
📄 shadow.h
[E]
[D]
[R]
📄 signal.h
[E]
[D]
[R]
📄 slapi-plugin.h
[E]
[D]
[R]
📁 sound
Open
[D]
[R]
📄 spawn.h
[E]
[D]
[R]
📄 sql3types.h
[E]
[D]
[R]
📄 sqlca.h
[E]
[D]
[R]
📄 sqlda-compat.h
[E]
[D]
[R]
📄 sqlda-native.h
[E]
[D]
[R]
📄 sqlda.h
[E]
[D]
[R]
📄 sqlite3.h
[E]
[D]
[R]
📄 sqlite3ext.h
[E]
[D]
[R]
📄 stab.h
[E]
[D]
[R]
📄 stdc-predef.h
[E]
[D]
[R]
📄 stdint.h
[E]
[D]
[R]
📄 stdio.h
[E]
[D]
[R]
📄 stdio_ext.h
[E]
[D]
[R]
📄 stdlib.h
[E]
[D]
[R]
📄 string.h
[E]
[D]
[R]
📄 strings.h
[E]
[D]
[R]
📁 sys
Open
[D]
[R]
📄 syscall.h
[E]
[D]
[R]
📄 sysexits.h
[E]
[D]
[R]
📄 syslog.h
[E]
[D]
[R]
📄 tar.h
[E]
[D]
[R]
📄 tcpd.h
[E]
[D]
[R]
📄 term.h
[E]
[D]
[R]
📄 term_entry.h
[E]
[D]
[R]
📄 termcap.h
[E]
[D]
[R]
📄 termio.h
[E]
[D]
[R]
📄 termios.h
[E]
[D]
[R]
📄 tgmath.h
[E]
[D]
[R]
📄 thread_db.h
[E]
[D]
[R]
📄 tic.h
[E]
[D]
[R]
📄 tidy.h
[E]
[D]
[R]
📄 tidybuffio.h
[E]
[D]
[R]
📄 tidyenum.h
[E]
[D]
[R]
📄 tidyplatform.h
[E]
[D]
[R]
📄 tiff.h
[E]
[D]
[R]
📄 tiffconf-64.h
[E]
[D]
[R]
📄 tiffconf.h
[E]
[D]
[R]
📄 tiffio.h
[E]
[D]
[R]
📄 tiffio.hxx
[E]
[D]
[R]
📄 tiffvers.h
[E]
[D]
[R]
📄 time.h
[E]
[D]
[R]
📄 ttyent.h
[E]
[D]
[R]
📁 uapi
Open
[D]
[R]
📁 ucd-snmp
Open
[D]
[R]
📄 uchar.h
[E]
[D]
[R]
📄 ucontext.h
[E]
[D]
[R]
📄 ulimit.h
[E]
[D]
[R]
📄 unctrl.h
[E]
[D]
[R]
📁 unicode
Open
[D]
[R]
📄 unistd.h
[E]
[D]
[R]
📄 ustat.h
[E]
[D]
[R]
📄 utime.h
[E]
[D]
[R]
📄 utmp.h
[E]
[D]
[R]
📄 utmpx.h
[E]
[D]
[R]
📁 uuid
Open
[D]
[R]
📄 values.h
[E]
[D]
[R]
📄 verto-module.h
[E]
[D]
[R]
📄 verto.h
[E]
[D]
[R]
📁 video
Open
[D]
[R]
📁 vpx
Open
[D]
[R]
📄 wait.h
[E]
[D]
[R]
📄 wchar.h
[E]
[D]
[R]
📄 wctype.h
[E]
[D]
[R]
📁 webp
Open
[D]
[R]
📄 wordexp.h
[E]
[D]
[R]
📁 xcb
Open
[D]
[R]
📁 xen
Open
[D]
[R]
📄 xlocale.h
[E]
[D]
[R]
📄 zconf.h
[E]
[D]
[R]
📄 zlib.h
[E]
[D]
[R]
Editing: ldap_cdefs.h
/* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2016 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A copy of this license is available in file LICENSE in the * top-level directory of the distribution or, alternatively, at * <http://www.OpenLDAP.org/license.html>. */ /* LDAP C Defines */ #ifndef _LDAP_CDEFS_H #define _LDAP_CDEFS_H #if defined(__cplusplus) || defined(c_plusplus) # define LDAP_BEGIN_DECL extern "C" { # define LDAP_END_DECL } #else # define LDAP_BEGIN_DECL /* begin declarations */ # define LDAP_END_DECL /* end declarations */ #endif #if !defined(LDAP_NO_PROTOTYPES) && ( defined(LDAP_NEEDS_PROTOTYPES) || \ defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) ) /* ANSI C or C++ */ # define LDAP_P(protos) protos # define LDAP_CONCAT1(x,y) x ## y # define LDAP_CONCAT(x,y) LDAP_CONCAT1(x,y) # define LDAP_STRING(x) #x /* stringify without expanding x */ # define LDAP_XSTRING(x) LDAP_STRING(x) /* expand x, then stringify */ #ifndef LDAP_CONST # define LDAP_CONST const #endif #else /* no prototypes */ /* traditional C */ # define LDAP_P(protos) () # define LDAP_CONCAT(x,y) x/**/y # define LDAP_STRING(x) "x" #ifndef LDAP_CONST # define LDAP_CONST /* no const */ #endif #endif /* no prototypes */ #if (__GNUC__) * 1000 + (__GNUC_MINOR__) >= 2006 # define LDAP_GCCATTR(attrs) __attribute__(attrs) #else # define LDAP_GCCATTR(attrs) #endif /* * Support for Windows DLLs. * * When external source code includes header files for dynamic libraries, * the external source code is "importing" DLL symbols into its resulting * object code. On Windows, symbols imported from DLLs must be explicitly * indicated in header files with the __declspec(dllimport) directive. * This is not totally necessary for functions because the compiler * (gcc or MSVC) will generate stubs when this directive is absent. * However, this is required for imported variables. * * The LDAP libraries, i.e. liblber and libldap, can be built as * static or shared, based on configuration. Just about all other source * code in OpenLDAP use these libraries. If the LDAP libraries * are configured as shared, 'configure' defines the LDAP_LIBS_DYNAMIC * macro. When other source files include LDAP library headers, the * LDAP library symbols will automatically be marked as imported. When * the actual LDAP libraries are being built, the symbols will not * be marked as imported because the LBER_LIBRARY or LDAP_LIBRARY macros * will be respectively defined. * * Any project outside of OpenLDAP with source code wanting to use * LDAP dynamic libraries should explicitly define LDAP_LIBS_DYNAMIC. * This will ensure that external source code appropriately marks symbols * that will be imported. * * The slapd executable, itself, can be used as a dynamic library. * For example, if a backend module is compiled as shared, it will * import symbols from slapd. When this happens, the slapd symbols * must be marked as imported in header files that the backend module * includes. Remember that slapd links with various static libraries. * If the LDAP libraries were configured as static, their object * code is also part of the monolithic slapd executable. Thus, when * a backend module imports symbols from slapd, it imports symbols from * all of the static libraries in slapd as well. Thus, the SLAP_IMPORT * macro, when defined, will appropriately mark symbols as imported. * This macro should be used by shared backend modules as well as any * other external source code that imports symbols from the slapd * executable as if it were a DLL. * * Note that we don't actually have to worry about using the * __declspec(dllexport) directive anywhere. This is because both * MSVC and Mingw provide alternate (more effective) methods for exporting * symbols out of binaries, i.e. the use of a DEF file. * * NOTE ABOUT BACKENDS: Backends can be configured as static or dynamic. * When a backend is configured as dynamic, slapd will load the backend * explicitly and populate function pointer structures by calling * the backend's well-known initialization function. Because of this * procedure, slapd never implicitly imports symbols from dynamic backends. * This makes it unnecessary to tag various backend functions with the * __declspec(dllimport) directive. This is because neither slapd nor * any other external binary should ever be implicitly loading a backend * dynamic module. * * Backends are supposed to be self-contained. However, it appears that * back-meta DOES implicitly import symbols from back-ldap. This means * that the __declspec(dllimport) directive should be marked on back-ldap * functions (in its header files) if and only if we're compiling for * windows AND back-ldap has been configured as dynamic AND back-meta * is the client of back-ldap. When client is slapd, there is no effect * since slapd does not implicitly import symbols. * * TODO(?): Currently, back-meta nor back-ldap is supported for Mingw32. * Thus, there's no need to worry about this right now. This is something that * may or may not have to be addressed in the future. */ /* LBER library */ #if defined(_WIN32) && \ ((defined(LDAP_LIBS_DYNAMIC) && !defined(LBER_LIBRARY)) || \ (!defined(LDAP_LIBS_DYNAMIC) && defined(SLAPD_IMPORT))) # define LBER_F(type) extern __declspec(dllimport) type # define LBER_V(type) extern __declspec(dllimport) type #else # define LBER_F(type) extern type # define LBER_V(type) extern type #endif /* LDAP library */ #if defined(_WIN32) && \ ((defined(LDAP_LIBS_DYNAMIC) && !defined(LDAP_LIBRARY)) || \ (!defined(LDAP_LIBS_DYNAMIC) && defined(SLAPD_IMPORT))) # define LDAP_F(type) extern __declspec(dllimport) type # define LDAP_V(type) extern __declspec(dllimport) type #else # define LDAP_F(type) extern type # define LDAP_V(type) extern type #endif /* AVL library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_AVL_F(type) extern __declspec(dllimport) type # define LDAP_AVL_V(type) extern __declspec(dllimport) type #else # define LDAP_AVL_F(type) extern type # define LDAP_AVL_V(type) extern type #endif /* LDIF library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_LDIF_F(type) extern __declspec(dllimport) type # define LDAP_LDIF_V(type) extern __declspec(dllimport) type #else # define LDAP_LDIF_F(type) extern type # define LDAP_LDIF_V(type) extern type #endif /* LUNICODE library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_LUNICODE_F(type) extern __declspec(dllimport) type # define LDAP_LUNICODE_V(type) extern __declspec(dllimport) type #else # define LDAP_LUNICODE_F(type) extern type # define LDAP_LUNICODE_V(type) extern type #endif /* LUTIL library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_LUTIL_F(type) extern __declspec(dllimport) type # define LDAP_LUTIL_V(type) extern __declspec(dllimport) type #else # define LDAP_LUTIL_F(type) extern type # define LDAP_LUTIL_V(type) extern type #endif /* REWRITE library */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_REWRITE_F(type) extern __declspec(dllimport) type # define LDAP_REWRITE_V(type) extern __declspec(dllimport) type #else # define LDAP_REWRITE_F(type) extern type # define LDAP_REWRITE_V(type) extern type #endif /* SLAPD (as a dynamic library exporting symbols) */ #if defined(_WIN32) && defined(SLAPD_IMPORT) # define LDAP_SLAPD_F(type) extern __declspec(dllimport) type # define LDAP_SLAPD_V(type) extern __declspec(dllimport) type #else # define LDAP_SLAPD_F(type) extern type # 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 * being defined, if desired. * * MSVC defines the _DLL macro when the compiler is invoked with /MD or /MDd, * which means the resulting object code will be linked with the dynamic * C run-time library. * * Technically, it shouldn't be necessary to redefine any functions that * the headers for the C library should already contain. Nevertheless, this * is here as a safe-guard. * * TODO: Determine if these macros ever get expanded for Windows. If not, * the declspec expansion can probably be removed. */ #if (defined(__MINGW32__) && !defined(CSTATIC)) || \ (defined(_MSC_VER) && defined(_DLL)) # define LDAP_LIBC_F(type) extern __declspec(dllimport) type # define LDAP_LIBC_V(type) extern __declspec(dllimport) type #else # define LDAP_LIBC_F(type) extern type # define LDAP_LIBC_V(type) extern type #endif #endif /* _LDAP_CDEFS_H */
Save