Wrap externs with parens to protect against inproper macro expansion.

This commit is contained in:
Kurt Zeilenga 1999-05-18 20:52:36 +00:00
parent 00da392c5f
commit 29a7d6229a
6 changed files with 10 additions and 11 deletions

View file

@ -23,7 +23,7 @@
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
extern char *alloca ();
extern char *(alloca)();
# endif
# endif
# endif

View file

@ -28,10 +28,6 @@ extern char *sys_errlist[];
#endif
#endif
#if !defined( EWOULDBLOCK ) && defined( WSAEWOULDBLOCK )
#define EWOULDBLOCK WSAEWOULDBLOCK
#endif
/* use _POSIX_VERSION for POSIX.1 code */
#endif /* _AC_ERRNO_H */

View file

@ -18,7 +18,7 @@
# include <libutil.h>
#else
/* use lutil version */
extern void setproctitle LDAP_P((const char *fmt, ...));
extern void (setproctitle) LDAP_P((const char *fmt, ...));
extern int Argc;
extern char **Argv;
#endif

View file

@ -67,6 +67,9 @@
# define tcp_close( s ) closesocket( s );
# define ioctl( s, c, a ) ioctlsocket( (s), (c), (a) )
# define ioctl_t u_long
#define EWOULDBLOCK WSAEWOULDBLOCK
#elif MACOS
# define tcp_close( s ) tcpclose( s )
#elif DOS

View file

@ -57,7 +57,7 @@ extern char *ldap_pvt_strdup( const char * s );
#else
# ifdef DECL_STRDUP
/* some systems fail to declare strdup */
extern char *strdup();
extern char *(strdup)();
# endif
#endif

View file

@ -24,11 +24,11 @@
#if HAVE_CRYPT_H
# include <crypt.h>
#else
extern char *crypt();
extern char *(crypt)();
#endif
#ifndef HAVE_GETPASS
extern char* getpass LDAP_P((const char *getpass));
extern char* (getpass) LDAP_P((const char *getpass));
#endif
/* getopt() defines may be in separate include file */
@ -46,10 +46,10 @@ extern char* getpass LDAP_P((const char *getpass));
#endif
#ifndef HAVE_TEMPNAM
extern char *tempnam(const char *tmpdir, const char *prefix);
extern char *(tempnam)(const char *tmpdir, const char *prefix);
#endif
#ifndef HAVE_MKTEMP
extern char *mktemp(char *);
extern char *(mktemp)(char *);
#endif
/* use lutil file locking */