diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-29 05:58:49 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-29 05:58:49 +0300 |
commit | af43bad53b2f05ba0d4403a59433f587a1e32b22 (patch) | |
tree | 3140c3e94c82bb687009bdcf547786b73f3f276b /awk.h | |
parent | 00682d87a1a1c0535c0fa5adb27867578dc76d49 (diff) | |
download | egawk-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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__) */ |