Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
0991e225
Commit
0991e225
authored
Oct 28, 1999
by
Howard Chu
Browse files
Fixed the LDAP_F macro.
See README 1.27 log
parent
ff2908ff
Changes
21
Hide whitespace changes
Inline
Side-by-side
include/ac/assert.h
View file @
0991e225
...
...
@@ -31,6 +31,15 @@
* create a replacement and hope it works
*/
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLBER_DECL
# define LDAP_F_PRE extern __declspec(LIBLBER_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
void
)
ber_pvt_assert
LDAP_P
((
const
char
*
file
,
int
line
,
const
char
*
test
));
...
...
include/ac/setproctitle.h
View file @
0991e225
...
...
@@ -18,6 +18,15 @@
#if defined( HAVE_LIBUTIL_H )
# include <libutil.h>
#else
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/* use lutil version */
LDAP_F
(
void
)
(
setproctitle
)
LDAP_P
((
const
char
*
fmt
,
...))
\
LDAP_GCCATTR
((
format
(
printf
,
1
,
2
)));
...
...
include/ac/socket.h
View file @
0991e225
...
...
@@ -139,7 +139,7 @@ extern char* WSAGetErrorString LDAP_P((int));
#if !defined( HAVE_INET_ATON ) && !defined( inet_aton )
#define inet_aton ldap_pvt_inet_aton
struct
in_addr
;
int
ldap_pvt_inet_aton
LDAP_P
((
const
char
*
,
struct
in_addr
*
));
LDAP_F
(
int
)
ldap_pvt_inet_aton
LDAP_P
((
const
char
*
,
struct
in_addr
*
));
#endif
#if defined(__WIN32) && defined(_ALPHA)
...
...
include/ac/string.h
View file @
0991e225
...
...
@@ -42,6 +42,15 @@
# endif
#endif
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/* use ldap_pvt_strtok instead of strtok or strtok_r! */
LDAP_F
(
char
*
)
ldap_pvt_strtok
LDAP_P
((
char
*
str
,
const
char
*
delim
,
char
**
pos
));
...
...
include/ac/unistd.h
View file @
0991e225
...
...
@@ -23,6 +23,15 @@
/* note: callers of crypt(3) should include <ac/crypt.h> */
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
#ifndef HAVE_GETPASS
LDAP_F
(
char
*
)(
getpass
)
LDAP_P
((
const
char
*
getpass
));
#else
...
...
@@ -48,9 +57,13 @@ LDAP_F(char*)(getpass)();
const
char
*
tmpdir
,
const
char
*
prefix
));
#endif
/* This is never even checked for or implemented if not present */
#if 0
#ifndef HAVE_MKTEMP
LDAP_F(char *)(mktemp) LDAP_P((char *));
#endif
#endif
/* use lutil file locking */
#define ldap_lockf(x) lutil_lockf(x)
...
...
include/avl.h
View file @
0991e225
...
...
@@ -61,6 +61,15 @@ typedef int (*AVL_CMP) LDAP_P((const void*, const void*));
typedef
int
(
*
AVL_DUP
)
LDAP_P
((
void
*
,
void
*
));
typedef
void
(
*
AVL_FREE
)
LDAP_P
((
void
*
));
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBAVL_DECL
# define LDAP_F_PRE extern __declspec(LIBAVL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
avl_free
LDAP_P
((
Avlnode
*
root
,
AVL_FREE
dfree
));
...
...
include/disptmpl.h
View file @
0991e225
...
...
@@ -225,6 +225,15 @@ struct ldap_disptmpl {
typedef
int
(
*
ldap_writeptype
)
LDAP_P
((
void
*
writeparm
,
char
*
p
,
ber_len_t
len
));
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
ldap_init_templates
LDAP_P
((
char
*
file
,
struct
ldap_disptmpl
**
tmpllistp
));
...
...
include/getopt-compat.h
View file @
0991e225
...
...
@@ -21,6 +21,15 @@ LDAP_BEGIN_DECL
extern
char
*
optarg
;
extern
int
optind
,
opterr
,
optopt
;
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
getopt
LDAP_P
((
int
,
...
...
include/lber.h
View file @
0991e225
...
...
@@ -163,6 +163,15 @@ typedef struct berval {
char
*
bv_val
;
}
BerValue
;
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLBER_DECL
# define LDAP_F_PRE extern __declspec(LIBLBER_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/*
* in bprint.c:
*/
...
...
include/lber_pvt.h
View file @
0991e225
...
...
@@ -20,6 +20,15 @@
LDAP_BEGIN_DECL
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLBER_DECL
# define LDAP_F_PRE extern __declspec(LIBLBER_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/*
* bprint.c
*/
...
...
include/ldap.h
View file @
0991e225
...
...
@@ -504,6 +504,15 @@ typedef struct ldap_url_desc {
*/
struct
timeval
;
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/*
* in options.c:
*/
...
...
include/ldap_log.h
View file @
0991e225
...
...
@@ -74,6 +74,15 @@ extern int ldap_syslog_level;
#define Debug( level, fmt, arg1, arg2, arg3 )
#endif
/* LDAP_DEBUG */
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
void
)
lutil_debug
LDAP_P
((
int
debug
,
int
level
,
const
char
*
fmt
,
...
))
LDAP_GCCATTR
((
format
(
printf
,
3
,
4
)));
...
...
include/ldap_pvt.h
View file @
0991e225
...
...
@@ -23,6 +23,15 @@ LDAP_BEGIN_DECL
struct
hostent
;
/* avoid pulling in <netdb.h> */
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
char
*
)
ldap_pvt_ctime
LDAP_P
((
const
time_t
*
tp
,
...
...
include/ldap_pvt_thread.h
View file @
0991e225
...
...
@@ -137,7 +137,8 @@ typedef struct ldap_pvt_thread_lwp_cv ldap_pvt_thread_cond_t;
LDAP_END_DECL
#elif HAVE_NT_THREADS
/* If we're in the NT env at all, we want these defs, threaded or not */
#elif defined(WINNT) || defined(_WINNT)
/* HAVE_NT_THREADS */
LDAP_BEGIN_DECL
...
...
@@ -176,6 +177,15 @@ LDAP_END_DECL
LDAP_BEGIN_DECL
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
ldap_pvt_thread_initialize
LDAP_P
((
void
));
...
...
include/ldap_schema.h
View file @
0991e225
...
...
@@ -87,6 +87,15 @@ typedef struct ldap_objectclass {
#define LDAP_SCHEMA_STRUCTURAL 1
#define LDAP_SCHEMA_AUXILIARY 2
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDAP_DECL
# define LDAP_F_PRE extern __declspec(LIBLDAP_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
LDAP_CONST
char
*
)
ldap_syntax2name
LDAP_P
((
LDAP_SYNTAX
*
syn
));
...
...
include/ldif.h
View file @
0991e225
...
...
@@ -48,6 +48,15 @@ extern int ldif_debug;
((nlen) + 4 + LDIF_BASE64_LEN(vlen) \
+ ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / LDIF_LINE_WIDTH * 2 ))
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLDIF_DECL
# define LDAP_F_PRE extern __declspec(LIBLDIF_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
ldif_parse_line
LDAP_P
((
LDAP_CONST
char
*
line
,
...
...
include/lutil.h
View file @
0991e225
...
...
@@ -19,14 +19,23 @@
* Include file for LDAP utility routine
*/
LDAP_BEGIN_DECL
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
/* n octets encode into ceiling(n/3) * 4 bytes */
/* Avoid floating point math by through extra padding */
#define LUTIL_BASE64_ENCODE_LEN(n) ((n)/3 * 4 + 4)
#define LUTIL_BASE64_DECODE_LEN(n) ((n)/4 * 3)
LDAP_BEGIN_DECL
/* ISC Base64 Routines */
/* base64.c */
...
...
include/lutil_lockf.h
View file @
0991e225
...
...
@@ -19,6 +19,15 @@
LDAP_BEGIN_DECL
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
int
)
lutil_lockf
LDAP_P
((
int
fd
));
...
...
include/lutil_md5.h
View file @
0991e225
...
...
@@ -36,6 +36,15 @@ struct lutil_MD5Context {
unsigned
char
in
[
64
];
};
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
void
)
lutil_MD5Init
LDAP_P
((
struct
lutil_MD5Context
*
context
));
...
...
include/lutil_sha1.h
View file @
0991e225
...
...
@@ -36,6 +36,15 @@ typedef struct {
unsigned
char
buffer
[
64
];
}
lutil_SHA1_CTX
;
#ifdef __MINGW32__
# undef LDAP_F_PRE
# ifdef LIBLUTIL_DECL
# define LDAP_F_PRE extern __declspec(LIBLUTIL_DECL)
# else
# define LDAP_F_PRE extern
# endif
#endif
LDAP_F
(
void
)
lutil_SHA1Transform
LDAP_P
((
uint32
state
[
5
],
const
unsigned
char
buffer
[
64
]));
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment