]> git.sur5r.net Git - openldap/blob - acconfig.h
Set modifiersname/timestamp upon creation.
[openldap] / acconfig.h
1 /*
2  * Copyright 1998,1999 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 /* --------------------------------------------------- */
15 /* begin of WINNT specific entries */
16
17 #if defined(WINNT) || defined(_WIN32)
18
19 /* don't suck in all of the win32 api */
20 #define WIN32_LEAN_AND_MEAN
21
22 #define MAXPATHLEN _MAX_PATH
23
24 /* preprocess out undefined functions */
25 #define LOG_DEBUG 0
26 #define openlog(a, b)
27 #define closelog()
28
29 /* define undefined types */
30 #define ssize_t signed int
31 typedef char * caddr_t;
32
33 #endif
34
35 /* end of WINNT specific entries */
36 /* --------------------------------------------------- */
37
38 /* end of preamble */
39 @TOP@
40
41 /* define this if needed to get reentrant functions */
42 #ifndef REENTRANT
43 #undef REENTRANT
44 #endif
45 #ifndef _REENTRANT
46 #undef _REENTRANT
47 #endif
48
49 /* define this if needed to get threadsafe functions */
50 #ifndef THREADSAFE
51 #undef THREADSAFE
52 #endif
53 #ifndef _THREADSAFE
54 #undef _THREADSAFE
55 #endif
56 #ifndef THREAD_SAFE
57 #undef THREAD_SAFE
58 #endif
59 #ifndef _THREAD_SAFE
60 #undef _THREAD_SAFE
61 #endif
62
63 #ifndef _SGI_MP_SOURCE
64 #undef _SGI_MP_SOURCE
65 #endif
66
67 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
68 #undef GWINSZ_IN_SYS_IOCTL
69
70 /* These are defined in ldap_features.h */
71 /*
72         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
73         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
74         LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
75         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
76 */
77
78 /* These are defined in lber_types.h */
79 /*
80         LBER_INT_T
81         LBER_LEN_T
82         LBER_SOCKET_T
83         LBER_TAG_T
84 */
85
86 \f
87 /* Leave that blank line there!!  Autoheader needs it. */
88
89 @BOTTOM@
90 /* begin of postamble */
91
92 #ifndef __NEED_PROTOTYPES
93 /* force LDAP_P to always include prototypes */
94 #define __NEED_PROTOTYPES 1
95 #endif
96
97 #ifdef HAVE_STDDEF_H
98 #       include <stddef.h>
99 #endif
100
101 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
102 #define LDAP_TEST
103 #endif
104 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
105 #define LDAP_DEBUG
106 #endif
107
108 #include "ldap_cdefs.h"
109 #include "ldap_features.h"
110
111 #include "ac/assert.h"
112
113 #endif /* _LDAP_PORTABLE_H */