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