acconfig.h 2.49 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
2
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
 *
 * Copyright 1998-2003 The OpenLDAP Foundation
4
5
 * All rights reserved.
 *
6
7
 * 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
8
9
10
11
12
 * 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>.
13
 */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
14

15
16
#ifndef _LDAP_PORTABLE_H
#define _LDAP_PORTABLE_H
Kurt Zeilenga's avatar
Kurt Zeilenga committed
17

18
/* end of preamble */
19

20
@TOP@
21
22

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

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

44
45
46
47
#ifndef _SGI_MP_SOURCE
#undef _SGI_MP_SOURCE
#endif

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

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

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

67
68
69
70
71
72
/* define to character address type */
#undef caddr_t

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

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

@BOTTOM@
77

78
79
/* begin of postamble */

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

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

90
91
92
93
#ifdef HAVE_STDDEF_H
#	include <stddef.h>
#endif

94
95
96
97
#ifndef LDAP_REL_ENG
#if (LDAP_VENDOR_VERSION == 000000) && !defined(LDAP_DEVEL)
#define LDAP_DEVEL
#endif
98
99
100
#if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
#define LDAP_TEST
#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
#include "ac/assert.h"
Kurt Zeilenga's avatar
Kurt Zeilenga committed
120
#include "ac/localize.h"
121

122
#endif /* _LDAP_PORTABLE_H */