]> git.sur5r.net Git - openldap/blob - acconfig.h
stdio #defines for HAVE_EBCDIC
[openldap] / acconfig.h
1 /*
2  * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted only as authorized by the OpenLDAP
7  * Public License.  A copy of this license is available at
8  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
9  * top-level directory of the distribution.
10  */
11
12 #ifndef _LDAP_PORTABLE_H
13 #define _LDAP_PORTABLE_H
14
15 /* end of preamble */
16
17 @TOP@
18
19 /* define this if needed to get reentrant functions */
20 #ifndef REENTRANT
21 #undef REENTRANT
22 #endif
23 #ifndef _REENTRANT
24 #undef _REENTRANT
25 #endif
26
27 /* define this if needed to get threadsafe functions */
28 #ifndef THREADSAFE
29 #undef THREADSAFE
30 #endif
31 #ifndef _THREADSAFE
32 #undef _THREADSAFE
33 #endif
34 #ifndef THREAD_SAFE
35 #undef THREAD_SAFE
36 #endif
37 #ifndef _THREAD_SAFE
38 #undef _THREAD_SAFE
39 #endif
40
41 #ifndef _SGI_MP_SOURCE
42 #undef _SGI_MP_SOURCE
43 #endif
44
45 /* define this if TIOCGWINSZ is defined in sys/ioctl.h */
46 #undef GWINSZ_IN_SYS_IOCTL
47
48 /* These are defined in ldap_features.h */
49 /*
50         LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
51         LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
52         LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
53         LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
54 */
55
56 /* These are defined in lber_types.h */
57 /*
58         LBER_INT_T
59         LBER_LEN_T
60         LBER_SOCKET_T
61         LBER_TAG_T
62 */
63
64 /* define to character address type */
65 #undef caddr_t
66
67 /* define to signed size type */
68 #undef ssize_t
69
70 \f
71 /* Leave that blank line there!!  Autoheader needs it. */
72
73 @BOTTOM@
74
75 /* begin of postamble */
76
77 #ifdef _WIN32
78         /* don't suck in all of the win32 api */
79 #       define WIN32_LEAN_AND_MEAN 1
80 #endif
81
82 #ifndef LDAP_NEEDS_PROTOTYPES
83 /* force LDAP_P to always include prototypes */
84 #define LDAP_NEEDS_PROTOTYPES 1
85 #endif
86
87 #ifdef HAVE_STDDEF_H
88 #       include <stddef.h>
89 #endif
90
91 #if defined(LDAP_DEVEL) && !defined(LDAP_TEST)
92 #define LDAP_TEST
93 #endif
94 #if defined(LDAP_TEST) && !defined(LDAP_DEBUG)
95 #define LDAP_DEBUG
96 #endif
97
98 #ifdef HAVE_EBCDIC 
99 /* ASCII/EBCDIC converting replacements for stdio funcs
100  * vsnprintf and snprintf are used too, but they are already
101  * checked by the configure script
102  */
103 #define fputs lutil_fputs
104 #define fgets lutil_fgets
105 #define printf lutil_printf
106 #define fprintf lutil_fprintf
107 #define vfprintf lutil_vfprintf
108 #define vsprintf lutil_vsprintf
109 #endif
110
111 #include "ldap_cdefs.h"
112 #include "ldap_features.h"
113
114 #include "ac/assert.h"
115
116 #endif /* _LDAP_PORTABLE_H */