aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2014-09-28 11:30:29 -0400
committerGravatar Lioncash <mathew1800@gmail.com>2014-09-28 11:44:14 -0400
commitca2f0de08abaffea419e674274113b27acdf6ece (patch)
tree30bcdb7a6178ec37b97eac7929b8e92c0e9b0a1b /src/common/file_util.h
parentee7cfc71bd8663b77a43c5ba577074972d9b7ad9 (diff)
Fix warnings in core and common
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index cddcd195..f9d91972 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -6,9 +6,9 @@
#include <fstream>
#include <cstdio>
+#include <cstring>
#include <string>
#include <vector>
-#include <string.h>
#include "common/common.h"
#include "common/string_util.h"
@@ -128,8 +128,8 @@ std::string GetBundleDirectory();
std::string &GetExeDirectory();
#endif
-bool WriteStringToFile(bool text_file, const std::string &str, const char *filename);
-bool ReadFileToString(bool text_file, const char *filename, std::string &str);
+size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename);
+size_t ReadFileToString(bool text_file, const char *filename, std::string &str);
// simple wrapper for cstdlib file functions to
// hopefully will make error checking easier