summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-12-24 02:24:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-12-24 02:24:59 +0000
commit26618a56da4122343158bd70acec552d2e6da993 (patch)
tree4ba150d7472de986d3f220242c66b8153be08144 /perl.h
parent473986ffed3c1c49ad493ce37648d9ef116e65bb (diff)
downloadperl-26618a56da4122343158bd70acec552d2e6da993.tar.gz
[win32] add support for crypt() via user-supplied des_fcrypt() source or library.
Update README.win32. p4raw-id: //depot/win32/perl@385
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/perl.h b/perl.h
index 4edbd0d21d..59d729305e 100644
--- a/perl.h
+++ b/perl.h
@@ -1299,19 +1299,21 @@ END_EXTERN_C
#endif
#ifndef __cplusplus
-#ifdef __NeXT__ /* or whatever catches all NeXTs */
+# ifdef __NeXT__ /* or whatever catches all NeXTs */
char *crypt (); /* Maybe more hosts will need the unprototyped version */
-#else
+# else
+# if !defined(WIN32) || !defined(HAVE_DES_FCRYPT)
char *crypt _((const char*, const char*));
-#endif
-#ifndef DONT_DECLARE_STD
-#ifndef getenv
+# endif /* !WIN32 && !HAVE_CRYPT_SOURCE */
+# endif /* !__NeXT__ */
+# ifndef DONT_DECLARE_STD
+# ifndef getenv
char *getenv _((const char*));
-#endif
+# endif /* !getenv */
Off_t lseek _((int,Off_t,int));
-#endif
+# endif /* !DONT_DECLARE_STD */
char *getlogin _((void));
-#endif
+#endif /* !__cplusplus */
#ifdef UNLINK_ALL_VERSIONS /* Currently only makes sense for VMS */
#define UNLINK unlnk