* 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 $
*
*-------------------------------------------------------------------------
*/
* 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))
extern int isnan(double dsrc);
-extern char *crypt(const char *, const char *);
-
extern long random(void);
extern void srandom(unsigned int seed);
#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