summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-03-28 16:39:52 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-03-28 16:39:52 -0400
commit7c018bba0d7b7c60140af32474ae7bf0979c998c (patch)
treee2549d5724ab9da714c30644adc670388e57745f
parent76aa21ac0c07b71c4a52cd8d6e8fa5f280e2a0c2 (diff)
downloadefl-7c018bba0d7b7c60140af32474ae7bf0979c998c.tar.gz
eolian should use "wb" for file opening to not break windows use
-rw-r--r--src/bin/eolian/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 8e091335a9..3a989fd71b 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -57,7 +57,7 @@ _generate_eo_h_file(char *filename, const char *classname)
const char *htext = eina_strbuf_string_get(hfile);
- FILE* fd = fopen(filename, "w");
+ FILE* fd = fopen(filename, "wb");
if (!fd)
{
const char *err = strerror(errno);
@@ -102,7 +102,7 @@ _generate_c_file(char *filename, const char *classname)
goto end;
}
- FILE* fd = fopen(filename, "w");
+ FILE* fd = fopen(filename, "wb");
if (!fd)
{
ERR("Couldnt open file %s for writing", filename);
@@ -137,7 +137,7 @@ _generate_legacy_header_file(char *filename, const char *classname)
goto end;
}
- FILE* fd = fopen(filename, "w");
+ FILE* fd = fopen(filename, "wb");
if (!fd)
{
ERR ("Couldnt open file %s for writing", filename);