1 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 * Copyright 1998-2005 The OpenLDAP Foundation
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted only as authorized by the OpenLDAP
10 * A copy of this license is available in the file LICENSE in the
11 * top-level directory of the distribution or, alternatively, at
12 * <http://www.OpenLDAP.org/license.html>.
15 #ifndef _LDAP_PORTABLE_H
16 #define _LDAP_PORTABLE_H
22 /* define this if needed to get reentrant functions */
30 /* define this if needed to get threadsafe functions */
44 #ifndef _SGI_MP_SOURCE
48 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
49 #undef GWINSZ_IN_SYS_IOCTL
51 /* These are defined in ldap_features.h */
53 LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
54 LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
55 LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
56 LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
59 /* These are defined in lber_types.h */
67 /* define to character address type */
70 /* define to signed size type */
74 /* Leave that blank line there!! Autoheader needs it. */
78 /* begin of postamble */
81 /* don't suck in all of the win32 api */
82 # define WIN32_LEAN_AND_MEAN 1
85 #ifndef LDAP_NEEDS_PROTOTYPES
86 /* force LDAP_P to always include prototypes */
87 #define LDAP_NEEDS_PROTOTYPES 1
91 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
94 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
104 /* ASCII/EBCDIC converting replacements for stdio funcs
105 * vsnprintf and snprintf are used too, but they are already
106 * checked by the configure script
108 #define fputs ber_pvt_fputs
109 #define fgets ber_pvt_fgets
110 #define printf ber_pvt_printf
111 #define fprintf ber_pvt_fprintf
112 #define vfprintf ber_pvt_vfprintf
113 #define vsprintf ber_pvt_vsprintf
116 #include "ac/fdset.h"
118 #include "ldap_cdefs.h"
119 #include "ldap_features.h"
121 #include "ac/assert.h"
122 #include "ac/localize.h"
124 #endif /* _LDAP_PORTABLE_H */