summaryrefslogtreecommitdiff
path: root/dosish.h
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 16:40:59 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:07 +0100
commit604645a653b1bdf4f641a2db6a777ac274626687 (patch)
treebebb7531d1c89e25d1970ba4ce78a85a05e3dc1c /dosish.h
parentfbaa6c64d983277fa97268284a1ab6dd2a02959a (diff)
downloadperl-604645a653b1bdf4f641a2db6a777ac274626687.tar.gz
dosish.h: simplify cpp conditionals
Diffstat (limited to 'dosish.h')
-rw-r--r--dosish.h42
1 files changed, 18 insertions, 24 deletions
diff --git a/dosish.h b/dosish.h
index 1dc932260a..9fd43ea682 100644
--- a/dosish.h
+++ b/dosish.h
@@ -32,24 +32,20 @@
# define PERL_FS_VERSION STRINGIFY(PERL_REVISION) "_" \
STRINGIFY(PERL_VERSION) "_" \
STRINGIFY(PERL_SUBVERSION)
-#else /* DJGPP */
-# ifdef WIN32
-# define PERL_SYS_INIT_BODY(c,v) \
- MALLOC_CHECK_TAINT2(*c,*v) Perl_win32_init(c,v); PERLIO_INIT
-# define PERL_SYS_TERM_BODY() Perl_win32_term()
-# define BIT_BUCKET "nul"
-# else
-# ifdef NETWARE
-# define PERL_SYS_INIT_BODY(c,v) \
- MALLOC_CHECK_TAINT2(*c,*v) Perl_nw5_init(c,v); PERLIO_INIT
-# define BIT_BUCKET "nwnul"
-# else
-# define PERL_SYS_INIT_BODY(c,v) \
- MALLOC_CHECK_TAINT2(*c,*v); PERLIO_INIT
-# define BIT_BUCKET "\\dev\\nul" /* "wanna be like, umm, Newlined, or somethin?" */
-# endif /* NETWARE */
-# endif
-#endif /* DJGPP */
+#elif defined(WIN32)
+# define PERL_SYS_INIT_BODY(c,v) \
+ MALLOC_CHECK_TAINT2(*c,*v) Perl_win32_init(c,v); PERLIO_INIT
+# define PERL_SYS_TERM_BODY() Perl_win32_term()
+# define BIT_BUCKET "nul"
+#elif defined(NETWARE)
+# define PERL_SYS_INIT_BODY(c,v) \
+ MALLOC_CHECK_TAINT2(*c,*v) Perl_nw5_init(c,v); PERLIO_INIT
+# define BIT_BUCKET "nwnul"
+#else
+# define PERL_SYS_INIT_BODY(c,v) \
+ MALLOC_CHECK_TAINT2(*c,*v); PERLIO_INIT
+# define BIT_BUCKET "\\dev\\nul" /* "wanna be like, umm, Newlined, or somethin?" */
+#endif
#ifndef PERL_SYS_TERM_BODY
# define PERL_SYS_TERM_BODY() \
@@ -73,13 +69,11 @@
* information.
*/
#if defined(WIN64) || defined(USE_LARGE_FILES)
-#define Stat_t struct _stati64
+# define Stat_t struct _stati64
+#elif defined(UNDER_CE)
+# define Stat_t struct xcestat
#else
-#if defined(UNDER_CE)
-#define Stat_t struct xcestat
-#else
-#define Stat_t struct stat
-#endif
+# define Stat_t struct stat
#endif
/* USE_STAT_RDEV: