summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:38:21 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:38:21 +0000
commite491f0161def9f347f13c2f421017b971aa9fd30 (patch)
tree460ae6eedf561a72ac5ce5086b6b6d3c17b6eb23 /src
parente31f179ae041fc73fea72dcdc19720e94f65a70d (diff)
downloadgflags-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 0668fbc..9035890 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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);