]> git.sur5r.net Git - openldap/blob - acconfig.h
Y2k copyright update
[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 @TOP@
17
18 /* define this if needed to get reentrant functions */
19 #ifndef REENTRANT
20 #undef REENTRANT
21 #endif
22 #ifndef _REENTRANT
23 #undef _REENTRANT
24 #endif
25
26 /* define this if needed to get threadsafe functions */
27 #ifndef THREADSAFE
28 #undef THREADSAFE
29 #endif
30 #ifndef _THREADSAFE
31 #undef _THREADSAFE
32 #endif
33 #ifndef THREAD_SAFE
34 #undef THREAD_SAFE
35 #endif
36 #ifndef _THREAD_SAFE
37 #undef _THREAD_SAFE
38 #endif
39
40 #ifndef _SGI_MP_SOURCE
41 #undef _SGI_MP_SOURCE
42 #endif
43
44 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
45 #undef GWINSZ_IN_SYS_IOCTL
46
47 /* These are defined in ldap_features.h */
48 /*
49         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
50         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
51         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
52         LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
53         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
54 */
55
56 /* These are defined in lber_types.h */
57 /*
58         LBER_INT_T
59         LBER_LEN_T
60         LBER_SOCKET_T
61         LBER_TAG_T
62 */
63
64 /* define to character address type */
65 #undef caddr_t
66
67 /* define to signed size type */
68 #undef ssize_t
69
70 \f
71 /* Leave that blank line there!!  Autoheader needs it. */
72
73 @BOTTOM@
74
75 /* begin of postamble */
76
77 #ifdef _WIN32
78         /* don't suck in all of the win32 api */
79 #       define WIN32_LEAN_AND_MEAN 1
80 #endif
81
82 #ifndef __NEED_PROTOTYPES
83 /* force LDAP_P to always include prototypes */
84 #define __NEED_PROTOTYPES 1
85 #endif
86
87 #ifdef HAVE_STDDEF_H
88 #       include <stddef.h>
89 #endif
90
91 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
92 #define LDAP_TEST
93 #endif
94 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
95 #define LDAP_DEBUG
96 #endif
97
98 #include "ldap_cdefs.h"
99 #include "ldap_features.h"
100
101 #include "ac/assert.h"
102
103 #endif /* _LDAP_PORTABLE_H */