From af43bad53b2f05ba0d4403a59433f587a1e32b22 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 29 Aug 2016 05:58:49 +0300 Subject: Use fwrite_unlocked if it exists. Nice speedup in output. --- awk.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'awk.h') 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__) */ -- cgit v1.2.3