eolian should use "wb" for file opening to not break windows use

This commit is contained in:
Mike Blumenkrantz 2014-03-28 16:39:52 -04:00
parent 76aa21ac0c
commit 7c018bba0d
1 changed files with 3 additions and 3 deletions

View File

@ -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);