]> git.sur5r.net Git - openldap/blob - acconfig.h
0c6b5a75e3109793d9b590217e73890e85e90265
[openldap] / acconfig.h
1 /* Copyright 1998-2003 The OpenLDAP Foundation
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted only as authorized by the OpenLDAP
6  * Public License.
7  *
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>.
11  */
12
13 #ifndef _LDAP_PORTABLE_H
14 #define _LDAP_PORTABLE_H
15
16 /* end of preamble */
17
18 @TOP@
19
20 /* define this if needed to get reentrant functions */
21 #ifndef REENTRANT
22 #undef REENTRANT
23 #endif
24 #ifndef _REENTRANT
25 #undef _REENTRANT
26 #endif
27
28 /* define this if needed to get threadsafe functions */
29 #ifndef THREADSAFE
30 #undef THREADSAFE
31 #endif
32 #ifndef _THREADSAFE
33 #undef _THREADSAFE
34 #endif
35 #ifndef THREAD_SAFE
36 #undef THREAD_SAFE
37 #endif
38 #ifndef _THREAD_SAFE
39 #undef _THREAD_SAFE
40 #endif
41
42 #ifndef _SGI_MP_SOURCE
43 #undef _SGI_MP_SOURCE
44 #endif
45
46 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
47 #undef GWINSZ_IN_SYS_IOCTL
48
49 /* These are defined in ldap_features.h */
50 /*
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
55 */
56
57 /* These are defined in lber_types.h */
58 /*
59         LBER_INT_T
60         LBER_LEN_T
61         LBER_SOCKET_T
62         LBER_TAG_T
63 */
64
65 /* define to character address type */
66 #undef caddr_t
67
68 /* define to signed size type */
69 #undef ssize_t
70
71 \f
72 /* Leave that blank line there!!  Autoheader needs it. */
73
74 @BOTTOM@
75
76 /* begin of postamble */
77
78 #ifdef _WIN32
79         /* don't suck in all of the win32 api */
80 #       define WIN32_LEAN_AND_MEAN 1
81 #endif
82
83 #ifndef LDAP_NEEDS_PROTOTYPES
84 /* force LDAP_P to always include prototypes */
85 #define LDAP_NEEDS_PROTOTYPES 1
86 #endif
87
88 #ifdef HAVE_STDDEF_H
89 #       include <stddef.h>
90 #endif
91
92 #ifndef LDAP_REL_ENG
93 #if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
94 #define LDAP_DEVEL
95 #endif
96 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
97 #define LDAP_TEST
98 #endif
99 #endif
100
101 #ifdef HAVE_EBCDIC 
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
105  */
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
112 #endif
113
114 #include "ldap_cdefs.h"
115 #include "ldap_features.h"
116
117 #include "ac/assert.h"
118 #include "ac/localize.h"
119
120 #endif /* _LDAP_PORTABLE_H */