1 /* Copyright 1998-2003 The OpenLDAP Foundation
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted only as authorized by the OpenLDAP
8 * A copy of this license is available in the file LICENSE in the
9 * top-level directory of the distribution or, alternatively, at
10 * <http://www.OpenLDAP.org/license.html>.
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
20 /* define this if needed to get reentrant functions */
28 /* define this if needed to get threadsafe functions */
42 #ifndef _SGI_MP_SOURCE
46 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
47 #undef GWINSZ_IN_SYS_IOCTL
49 /* These are defined in ldap_features.h */
51 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
52 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
53 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
54 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
57 /* These are defined in lber_types.h */
65 /* define to character address type */
68 /* define to signed size type */
72 /* Leave that blank line there!! Autoheader needs it. */
76 /* begin of postamble */
79 /* don't suck in all of the win32 api */
80 # define WIN32_LEAN_AND_MEAN 1
83 #ifndef LDAP_NEEDS_PROTOTYPES
84 /* force LDAP_P to always include prototypes */
85 #define LDAP_NEEDS_PROTOTYPES 1
93 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
96 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
102 /* ASCII/EBCDIC converting replacements for stdio funcs
103 * vsnprintf and snprintf are used too, but they are already
104 * checked by the configure script
106 #define fputs ber_pvt_fputs
107 #define fgets ber_pvt_fgets
108 #define printf ber_pvt_printf
109 #define fprintf ber_pvt_fprintf
110 #define vfprintf ber_pvt_vfprintf
111 #define vsprintf ber_pvt_vsprintf
114 #include "ldap_cdefs.h"
115 #include "ldap_features.h"
117 #include "ac/assert.h"
118 #include "ac/localize.h"
120 #endif /* _LDAP_PORTABLE_H */