diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:38:21 +0000 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:38:21 +0000 |
commit | e491f0161def9f347f13c2f421017b971aa9fd30 (patch) | |
tree | 460ae6eedf561a72ac5ce5086b6b6d3c17b6eb23 /src | |
parent | e31f179ae041fc73fea72dcdc19720e94f65a70d (diff) | |
download | gflags-e491f0161def9f347f13c2f421017b971aa9fd30.tar.gz gflags-e491f0161def9f347f13c2f421017b971aa9fd30.tar.bz2 gflags-e491f0161def9f347f13c2f421017b971aa9fd30.zip |
Add missing errno.h include statement and use int instead of errno_t.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -46,6 +46,7 @@ #include <stdio.h> #include <iostream> #include <string> +#include <errno.h> #ifdef GFLAGS_HAVE_SYS_STAT_H # include <sys/stat.h> // for mkdir #endif @@ -356,7 +357,7 @@ inline bool SafeGetEnv(const char *varname, std::string &valstr) return true; } -inline errno_t SafeFOpen(FILE **fp, const char* fname, const char *mode) +inline int SafeFOpen(FILE **fp, const char* fname, const char *mode) { #if defined(_MSC_VER) && _MSC_VER >= 1400 return fopen_s(fp, fname, mode); |