aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-11 22:26:25 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-11 22:26:25 +0300
commitbb83ae45d4c9989b21e599e3cdab90a17541d2b2 (patch)
tree1c853fceb2803d6bf2c6bb4eb53ebd6f1057bd63 /awk.h
parent49ccc0da1e2cee9064ba9957c265994b1741b15d (diff)
parentbd6dc293e35fdeac05bd1577593e111fd09d22b7 (diff)
downloadegawk-bb83ae45d4c9989b21e599e3cdab90a17541d2b2.tar.gz
egawk-bb83ae45d4c9989b21e599e3cdab90a17541d2b2.tar.bz2
egawk-bb83ae45d4c9989b21e599e3cdab90a17541d2b2.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/awk.h b/awk.h
index c1e9b4a9..a0af5793 100644
--- a/awk.h
+++ b/awk.h
@@ -1970,5 +1970,10 @@ erealloc_real(void *ptr, size_t count, const char *where, const char *var, const
#else
#define ignore_sigpipe()
#define set_sigpipe_to_default()
+#ifdef __MINGW32__
+/* 0xC0000008 is EXCEPTION_INVALID_HANDLE, somewhat appropriate for EPIPE */
+#define die_via_sigpipe() exit(0xC0000008)
+#else /* !__MINGW32__ */
#define die_via_sigpipe() exit(EXIT_FATAL)
+#endif /* !__MINGW32__ */
#endif