More cleanups now that we have crypt().
This commit is contained in:
parent
384bbdd0e1
commit
d85a0a6bef
@ -12,7 +12,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: c.h,v 1.143 2003/05/09 16:26:29 momjian Exp $
|
||||
* $Id: c.h,v 1.144 2003/05/09 16:59:43 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -798,6 +798,10 @@ extern int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
|
||||
* Default "extern" declarations or macro substitutes for library routines.
|
||||
* When necessary, these routines are provided by files in src/port/.
|
||||
*/
|
||||
#ifndef HAVE_CRYPT
|
||||
char *crypt(const char *key, const char *setting);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FSEEKO
|
||||
#define fseeko(a, b, c) fseek((a), (b), (c))
|
||||
#define ftello(a) ftell((a))
|
||||
|
@ -26,7 +26,5 @@ typedef unsigned char slock_t;
|
||||
|
||||
extern int isnan(double dsrc);
|
||||
|
||||
extern char *crypt(const char *, const char *);
|
||||
|
||||
extern long random(void);
|
||||
extern void srandom(unsigned int seed);
|
||||
|
@ -27,11 +27,6 @@
|
||||
#define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d)
|
||||
#define snprintf _snprintf
|
||||
|
||||
/*
|
||||
* crypt not available (yet)
|
||||
*/
|
||||
#define crypt(a,b) ((char *) a)
|
||||
|
||||
#undef EAGAIN /* doesn't apply on sockets */
|
||||
#undef EINTR
|
||||
#define EINTR WSAEINTR
|
||||
|
Loading…
x
Reference in New Issue
Block a user