]> git.sur5r.net Git - openldap/blob - acconfig.h
Header changes
[openldap] / acconfig.h
1 /*
2  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted only
6  * as authorized by the OpenLDAP Public License.  A copy of this
7  * license is available at http://www.OpenLDAP.org/license.html or
8  * in file LICENSE in the top-level directory of the distribution.
9  */
10
11 #ifndef _LDAP_PORTABLE_H
12 #define _LDAP_PORTABLE_H
13
14 /* end of preamble */
15
16 #if !defined(SLAPD_SCHEMA_COMPAT) && !defined(SLAPD_SCHEMA_NOT_COMPAT)
17         /* define SLAPD_SCHEMA_COMPAT if you want old schema codes */
18 #define SLAPD_SCHEMA_NOT_COMPAT 1
19 #endif
20
21 @TOP@
22
23 /* define this if needed to get reentrant functions */
24 #ifndef REENTRANT
25 #undef REENTRANT
26 #endif
27 #ifndef _REENTRANT
28 #undef _REENTRANT
29 #endif
30
31 /* define this if needed to get threadsafe functions */
32 #ifndef THREADSAFE
33 #undef THREADSAFE
34 #endif
35 #ifndef _THREADSAFE
36 #undef _THREADSAFE
37 #endif
38 #ifndef THREAD_SAFE
39 #undef THREAD_SAFE
40 #endif
41 #ifndef _THREAD_SAFE
42 #undef _THREAD_SAFE
43 #endif
44
45 #ifndef _SGI_MP_SOURCE
46 #undef _SGI_MP_SOURCE
47 #endif
48
49 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
50 #undef GWINSZ_IN_SYS_IOCTL
51
52 /* These are defined in ldap_features.h */
53 /*
54         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
55         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
56         LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
57         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
58 */
59
60 /* These are defined in lber_types.h */
61 /*
62         LBER_INT_T
63         LBER_LEN_T
64         LBER_SOCKET_T
65         LBER_TAG_T
66 */
67
68 /* define to character address type */
69 #undef caddr_t
70
71 /* define to signed size type */
72 #undef ssize_t
73
74 \f
75 /* Leave that blank line there!!  Autoheader needs it. */
76
77 @BOTTOM@
78
79 /* begin of postamble */
80
81 #ifdef _WIN32
82         /* don't suck in all of the win32 api */
83 #       define WIN32_LEAN_AND_MEAN 1
84 #endif
85
86 #ifndef __NEED_PROTOTYPES
87 /* force LDAP_P to always include prototypes */
88 #define __NEED_PROTOTYPES 1
89 #endif
90
91 #ifdef HAVE_STDDEF_H
92 #       include <stddef.h>
93 #endif
94
95 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
96 #define LDAP_TEST
97 #endif
98 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
99 #define LDAP_DEBUG
100 #endif
101
102 #include "ldap_cdefs.h"
103 #include "ldap_features.h"
104
105 #include "ac/assert.h"
106
107 #endif /* _LDAP_PORTABLE_H */