efl: add binary mode to fdopen() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
3b44645363
commit
4f242fb48a
|
@ -193,7 +193,7 @@ sc_eofsrc(void *handle)
|
||||||
void *
|
void *
|
||||||
sc_openasm(int fd)
|
sc_openasm(int fd)
|
||||||
{
|
{
|
||||||
return fdopen(fd, "w+");
|
return fdopen(fd, "wb+");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -10156,7 +10156,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return EINA_FALSE; /* FIXME: report something */
|
return EINA_FALSE; /* FIXME: report something */
|
||||||
|
|
||||||
f = fdopen(fd, "w");
|
f = fdopen(fd, "wb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
|
@ -80,7 +80,7 @@ bc_tmp_open(const char *fname, char *buf, size_t buflen)
|
||||||
#endif
|
#endif
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
return fdopen(fd, "w");
|
return fdopen(fd, "wb");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -98,7 +98,7 @@ START_TEST(elua_api)
|
||||||
|
|
||||||
fd = mkstemp(buf);
|
fd = mkstemp(buf);
|
||||||
fail_if(fd < 0);
|
fail_if(fd < 0);
|
||||||
f = fdopen(fd, "w");
|
f = fdopen(fd, "wb");
|
||||||
fail_if(!f);
|
fail_if(!f);
|
||||||
fprintf(f, "return 5\n");
|
fprintf(f, "return 5\n");
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Loading…
Reference in New Issue