diff options
Diffstat (limited to 'portability.h')
-rw-r--r-- | portability.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/portability.h b/portability.h index 1208dff6..6784af5a 100644 --- a/portability.h +++ b/portability.h @@ -87,6 +87,9 @@ char *tokbuf; strncat_s((x), (z), (y), _TRUNCATE) #define setbuf(x, y) \ setvbuf((x), (y), _IONBF, 0) + #define fopen(x, y) \ + fopen_safe((x), (y)) + FILE *fopen_safe(const char *filename, const char* mode); #else #define strltok strtok #endif |