aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-29 05:58:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-29 05:58:49 +0300
commitaf43bad53b2f05ba0d4403a59433f587a1e32b22 (patch)
tree3140c3e94c82bb687009bdcf547786b73f3f276b /awk.h
parent00682d87a1a1c0535c0fa5adb27867578dc76d49 (diff)
downloadegawk-af43bad53b2f05ba0d4403a59433f587a1e32b22.tar.gz
egawk-af43bad53b2f05ba0d4403a59433f587a1e32b22.tar.bz2
egawk-af43bad53b2f05ba0d4403a59433f587a1e32b22.zip
Use fwrite_unlocked if it exists. Nice speedup in output.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/awk.h b/awk.h
index 2234abf8..edd9cb95 100644
--- a/awk.h
+++ b/awk.h
@@ -178,6 +178,10 @@ extern void *memset_ulong(void *dest, int val, unsigned long l);
#define memset memset_ulong
#endif
+#ifdef HAVE_FWRITE_UNLOCKED
+#define fwrite fwrite_unlocked
+#endif /* HAVE_FWRITE_UNLOCKED */
+
#if defined(__EMX__) || defined(__MINGW32__)
#include "nonposix.h"
#endif /* defined(__EMX__) || defined(__MINGW32__) */