acconfig.h 2.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
/*
 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted only
 * as authorized by the OpenLDAP Public License.  A copy of this
 * license is available at http://www.OpenLDAP.org/license.html or
 * in file LICENSE in the top-level directory of the distribution.
 */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
10

11
12
#ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H
Kurt Zeilenga's avatar
Kurt Zeilenga committed
13

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* --------------------------------------------------- */
/* begin of WINNT specific entries */

#ifdef WINNT

/* don't suck in all of the win32 api */
#define WIN32_LEAN_AND_MEAN

/* WindowsNT specific features */
#define HAVE_NT_SERVICE_MANAGER 1
#define HAVE_NT_EVENT_LOG 1

#define MAXPATHLEN _MAX_PATH

/* preprocess out undefined functions */
#define LOG_DEBUG 0
#define openlog(a, b)
#define closelog()

/* define undefined types */
#define ssize_t signed int
typedef char * caddr_t;

#endif

/* end of WINNT specific entries */
/* --------------------------------------------------- */

42
43
/* end of preamble */
@TOP@
44
45

/* define this if needed to get reentrant functions */
46
#ifndef REENTRANT
Kurt Zeilenga's avatar
Kurt Zeilenga committed
47
#undef REENTRANT
48
49
#endif
#ifndef _REENTRANT
50
#undef _REENTRANT
51
#endif
52
53

/* define this if needed to get threadsafe functions */
54
#ifndef THREADSAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
55
#undef THREADSAFE
56
57
#endif
#ifndef _THREADSAFE
58
#undef _THREADSAFE
59
60
#endif
#ifndef THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
61
#undef THREAD_SAFE
62
63
#endif
#ifndef _THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
64
#undef _THREAD_SAFE
65
#endif
66

67
68
69
70
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

71
72
73
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL

74
75
/* These are defined in ldap_features.h */
/*
76
77
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
78
79
80
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
81

82
83
84
85
86
87
88
/* These are defined in lber_types.h */
/*
	LBER_INT_T
	LBER_LEN_T
	LBER_SOCKET_T
	LBER_TAG_T
*/
89

Kurt Zeilenga's avatar
Kurt Zeilenga committed
90
91

/* Leave that blank line there!!  Autoheader needs it. */
92
93
94
95

@BOTTOM@
/* begin of postamble */

96
#ifndef __NEED_PROTOTYPES
97
/* force LDAP_P to always include prototypes */
98
#define __NEED_PROTOTYPES 1
99
100
#endif

101
102
103
104
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

105
106
107
108
109
110
111
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

112
113
114
#include "ldap_cdefs.h"
#include "ldap_features.h"

115
116
#include "ac/assert.h"

117
#endif /* _LDAP_PORTABLE_H */