Skip to content

Commit

Permalink
Fix for Windows: added O_BINARY.
Browse files Browse the repository at this point in the history
  • Loading branch information
kramm committed Sep 22, 2004
1 parent e8458c3 commit eed40b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion swfs/PreLoaderTemplate.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ int main (int argc,char ** argv)

tag = swf_InsertTag(tag,ST_END);

f = open("PreLoaderTemplate.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
f = open("PreLoaderTemplate.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);

Expand Down
2 changes: 1 addition & 1 deletion swfs/keyboard_viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int main (int argc,char ** argv)
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);

f = open("keyboard_viewer.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
f = open("keyboard_viewer.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);

Expand Down
2 changes: 1 addition & 1 deletion swfs/simple_viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int main (int argc,char ** argv)
tag = swf_InsertTag(tag,ST_END);


f = open("simple_viewer.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
f = open("simple_viewer.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);

Expand Down

0 comments on commit eed40b7

Please sign in to comment.