Skip to content

Commit

Permalink
use unlocked byte I/O operations (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored Mar 24, 2020
1 parent 4a588fd commit 62e2a2d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions zrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
#include <stdio.h>
#include <errno.h>

#if _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE || _BSD_SOURCE || _SVID_SOURCE
#ifdef __GNUC__
#define fgetc getc_unlocked
#define fputc putc_unlocked
#endif

#if _BSD_SOURCE || _SVID_SOURCE
#define feof feof_unlocked
#define ferror ferror_unlocked
#endif
Expand Down

0 comments on commit 62e2a2d

Please sign in to comment.