This allows better compatibility with Windows
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
void *
sc_openasm(int fd)
{
- return fdopen(fd, "w+");
+ return fdopen(fd, "wb+");
}
void
if (fd < 0)
return EINA_FALSE; /* FIXME: report something */
- f = fdopen(fd, "w");
+ f = fdopen(fd, "wb");
if (!f)
{
close(fd);
#endif
if (fd < 0)
return NULL;
- return fdopen(fd, "w");
+ return fdopen(fd, "wb");
}
static void
fd = mkstemp(buf);
fail_if(fd < 0);
- f = fdopen(fd, "w");
+ f = fdopen(fd, "wb");
fail_if(!f);
fprintf(f, "return 5\n");
fclose(f);