acconfig.h 2.47 KB
Newer Older
1
/*
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
 * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
3
4
 * All rights reserved.
 *
5
6
 * 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
7
 * Public License.  A copy of this license is available at
8
9
 * http://www.OpenLDAP.org/license.html or in file LICENSE in the
 * top-level directory of the distribution.
10
 */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11

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

15
/* end of preamble */
16

17
@TOP@
18
19

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

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

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

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

48
49
/* These are defined in ldap_features.h */
/*
50
51
	LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
	LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
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 LDAP_NEEDS_PROTOTYPES
83
/* force LDAP_P to always include prototypes */
84
#define LDAP_NEEDS_PROTOTYPES 1
85
86
#endif

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

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

Howard Chu's avatar
Howard Chu committed
103
104
105
106
107
#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
 */
108
109
110
111
112
113
#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
114
115
#endif

116
117
118
#include "ldap_cdefs.h"
#include "ldap_features.h"

119
120
#include "ac/assert.h"

121
#endif /* _LDAP_PORTABLE_H */