diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-05-07 23:42:42 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2002-05-07 23:42:42 +0000 |
commit | 6e21dc912fff1c74f60032b406b7b96bd0c3ee86 (patch) | |
tree | 42fe393a335e7d83f20b810c752ed094142982f7 /win32 | |
parent | 22a65f1e060cc583560af22c8de3f5ccad3c0161 (diff) | |
download | perl-6e21dc912fff1c74f60032b406b7b96bd0c3ee86.tar.gz |
fixes for various warnings identified by Visual C++
p4raw-id: //depot/perl@16460
Diffstat (limited to 'win32')
-rw-r--r-- | win32/config.bc | 2 | ||||
-rw-r--r-- | win32/config.gc | 2 | ||||
-rw-r--r-- | win32/config.vc | 2 | ||||
-rw-r--r-- | win32/config_H.bc | 2 | ||||
-rw-r--r-- | win32/config_H.gc | 2 | ||||
-rw-r--r-- | win32/config_H.vc | 2 | ||||
-rw-r--r-- | win32/win32.c | 6 | ||||
-rw-r--r-- | win32/win32iop.h | 1 |
8 files changed, 10 insertions, 9 deletions
diff --git a/win32/config.bc b/win32/config.bc index 0952833114..679cfdfcf4 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -157,7 +157,7 @@ d_finite='undef' d_finitel='undef' d_flexfnam='define' d_flock='define' -d_flockproto='undef' +d_flockproto='define' d_fork='undef' d_fp_class='undef' d_fpathconf='undef' diff --git a/win32/config.gc b/win32/config.gc index 588a624a94..32bbf1c462 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -241,7 +241,7 @@ d_finite='undef' d_finitel='undef' d_flexfnam='define' d_flock='define' -d_flockproto='undef' +d_flockproto='define' d_fork='undef' d_fp_class='undef' d_fpathconf='undef' diff --git a/win32/config.vc b/win32/config.vc index 1396feed47..2b0aea084e 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -157,7 +157,7 @@ d_finite='undef' d_finitel='undef' d_flexfnam='define' d_flock='define' -d_flockproto='undef' +d_flockproto='define' d_fork='undef' d_fp_class='undef' d_fpathconf='undef' diff --git a/win32/config_H.bc b/win32/config_H.bc index 5ccd4e88ca..a754aa9981 100644 --- a/win32/config_H.bc +++ b/win32/config_H.bc @@ -3464,7 +3464,7 @@ * to the program to supply one. A good guess is * extern int flock(int, int); */ -/*#define HAS_FLOCK_PROTO /**/ +#define HAS_FLOCK_PROTO /**/ /* HAS_FPCLASSL: * This symbol, if defined, indicates that the fpclassl routine is diff --git a/win32/config_H.gc b/win32/config_H.gc index a4fb0aa476..2a8c97baa5 100644 --- a/win32/config_H.gc +++ b/win32/config_H.gc @@ -3464,7 +3464,7 @@ * to the program to supply one. A good guess is * extern int flock(int, int); */ -/*#define HAS_FLOCK_PROTO /**/ +#define HAS_FLOCK_PROTO /**/ /* HAS_FPCLASSL: * This symbol, if defined, indicates that the fpclassl routine is diff --git a/win32/config_H.vc b/win32/config_H.vc index 9c9a2147ec..9aa8c21677 100644 --- a/win32/config_H.vc +++ b/win32/config_H.vc @@ -3464,7 +3464,7 @@ * to the program to supply one. A good guess is * extern int flock(int, int); */ -/*#define HAS_FLOCK_PROTO /**/ +#define HAS_FLOCK_PROTO /**/ /* HAS_FPCLASSL: * This symbol, if defined, indicates that the fpclassl routine is diff --git a/win32/win32.c b/win32/win32.c index f72acdde64..4b60d0adf2 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4021,7 +4021,7 @@ win32_free(void *block) } -int +DllExport int win32_open_osfhandle(intptr_t handle, int flags) { #ifdef USE_FIXED_OSFHANDLE @@ -4031,13 +4031,13 @@ win32_open_osfhandle(intptr_t handle, int flags) return _open_osfhandle(handle, flags); } -intptr_t +DllExport intptr_t win32_get_osfhandle(int fd) { return (intptr_t)_get_osfhandle(fd); } -FILE * +DllExport FILE * win32_fdupopen(FILE *pf) { FILE* pfdup; diff --git a/win32/win32iop.h b/win32/win32iop.h index ebfb6c21e7..1568a12207 100644 --- a/win32/win32iop.h +++ b/win32/win32iop.h @@ -113,6 +113,7 @@ DllExport void win32_free(void *block); DllExport int win32_open_osfhandle(intptr_t handle, int flags); DllExport intptr_t win32_get_osfhandle(int fd); +DllExport FILE* win32_fdupopen(FILE *pf); DllExport DIR* win32_opendir(char *filename); DllExport struct direct* win32_readdir(DIR *dirp); |