acconfig.h 1.99 KB
Newer Older
1
/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
3
4
5
6
7
8
9
 * 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
/* end of preamble */
15

16
@TOP@
17
18

/* define this if needed to get reentrant functions */
19
#ifndef REENTRANT
Kurt Zeilenga's avatar
Kurt Zeilenga committed
20
#undef REENTRANT
21
22
#endif
#ifndef _REENTRANT
23
#undef _REENTRANT
24
#endif
25
26

/* define this if needed to get threadsafe functions */
27
#ifndef THREADSAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
28
#undef THREADSAFE
29
30
#endif
#ifndef _THREADSAFE
31
#undef _THREADSAFE
32
33
#endif
#ifndef THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
34
#undef THREAD_SAFE
35
36
#endif
#ifndef _THREAD_SAFE
Kurt Zeilenga's avatar
Kurt Zeilenga committed
37
#undef _THREAD_SAFE
38
#endif
39

40
41
42
43
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

44
45
46
/* define this if TIOCGWINSZ is defined in sys/ioctl.h */
#undef GWINSZ_IN_SYS_IOCTL

47
48
/* These are defined in ldap_features.h */
/*
49
50
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
51
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
52
	LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
53
54
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
55

56
57
58
59
60
61
62
/* These are defined in lber_types.h */
/*
	LBER_INT_T
	LBER_LEN_T
	LBER_SOCKET_T
	LBER_TAG_T
*/
63

64
65
66
67
68
69
/* define to character address type */
#undef caddr_t

/* define to signed size type */
#undef ssize_t

Kurt Zeilenga's avatar
Kurt Zeilenga committed
70
71

/* Leave that blank line there!!  Autoheader needs it. */
72
73

@BOTTOM@
74

75
76
/* begin of postamble */

77
78
#ifdef _WIN32
	/* don't suck in all of the win32 api */
79
#	define WIN32_LEAN_AND_MEAN 1
80
81
#endif

82
#ifndef __NEED_PROTOTYPES
83
/* force LDAP_P to always include prototypes */
84
#define __NEED_PROTOTYPES 1
85
86
#endif

87
88
89
90
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

91
92
93
94
95
96
97
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
#if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
#define LDAP_DEBUG
#endif

98
99
100
#include "ldap_cdefs.h"
#include "ldap_features.h"

101
102
#include "ac/assert.h"

103
#endif /* _LDAP_PORTABLE_H */