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