Commit e491f016 authored by Andreas Schuh's avatar Andreas Schuh

Add missing errno.h include statement and use int instead of errno_t.

parent e31f179a
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include <stdio.h> #include <stdio.h>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <errno.h>
#ifdef GFLAGS_HAVE_SYS_STAT_H #ifdef GFLAGS_HAVE_SYS_STAT_H
# include <sys/stat.h> // for mkdir # include <sys/stat.h> // for mkdir
#endif #endif
...@@ -356,7 +357,7 @@ inline bool SafeGetEnv(const char *varname, std::string &valstr) ...@@ -356,7 +357,7 @@ inline bool SafeGetEnv(const char *varname, std::string &valstr)
return true; 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 #if defined(_MSC_VER) && _MSC_VER >= 1400
return fopen_s(fp, fname, mode); return fopen_s(fp, fname, mode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment