aboutsummaryrefslogtreecommitdiff
path: root/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'portability.h')
-rw-r--r--portability.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/portability.h b/portability.h
index 241acc17..3531fdca 100644
--- a/portability.h
+++ b/portability.h
@@ -99,6 +99,13 @@ extern "C" {
#endif
#define setbuf(x, y) \
setvbuf((x), (y), _IONBF, 0)
+
+ /*
+ * Make fopen() call a wrapper that calls fopen_s(), to squelch
+ * warnings.
+ */
+ #include <stdio.h>
+
#define fopen(x, y) \
fopen_safe((x), (y))
FILE *fopen_safe(const char *filename, const char* mode);