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

13
14
#ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H
Kurt Zeilenga's avatar
Kurt Zeilenga committed
15

16
/* end of preamble */
17

18
@TOP@
19
20

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

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

42
43
44
45
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

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

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

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

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

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

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

@BOTTOM@
75

76
77
/* begin of postamble */

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

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

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

92
93
94
95
#ifndef LDAP_REL_ENG
#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
#define LDAP_DEVEL
#endif
96
97
98
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#endif
99
#endif
100

Howard Chu's avatar
Howard Chu committed
101
102
103
104
105
#ifdef HAVE_EBCDIC 
/* ASCII/EBCDIC converting replacements for stdio funcs
 * vsnprintf and snprintf are used too, but they are already
 * checked by the configure script
 */
106
107
108
109
110
111
#define fputs ber_pvt_fputs
#define fgets ber_pvt_fgets
#define printf ber_pvt_printf
#define fprintf ber_pvt_fprintf
#define vfprintf ber_pvt_vfprintf
#define vsprintf ber_pvt_vsprintf
Howard Chu's avatar
Howard Chu committed
112
113
#endif

114
115
116
#include "ldap_cdefs.h"
#include "ldap_features.h"

117
#include "ac/assert.h"
Kurt Zeilenga's avatar
Kurt Zeilenga committed
118
#include "ac/localize.h"
119

120
#endif /* _LDAP_PORTABLE_H */