acconfig.h 1.95 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
/* 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
52
53
	LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
	LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
*/
54

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

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

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

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

@BOTTOM@
73

74
75
/* begin of postamble */

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

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

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

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

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

100
101
#include "ac/assert.h"

102
#endif /* _LDAP_PORTABLE_H */