mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 00:40:55 +00:00
fix output of postscript on mingw32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
886cba4ca4
commit
20ceece1cb
2 changed files with 13 additions and 4 deletions
|
@ -83,8 +83,12 @@ fpfloat(FILE *stream, float f)
|
|||
if (info && [info objectForKey: @"NSOutputFile"])
|
||||
{
|
||||
NSString *path = [info objectForKey: @"NSOutputFile"];
|
||||
NSLog(@"Printing to %s", [path fileSystemRepresentation]);
|
||||
NSDebugLLog(@"GSContext", @"Printing to %@", path);
|
||||
#if defined(__MINGW32__)
|
||||
gstream = _wfopen([path fileSystemRepresentation], L"wb");
|
||||
#else
|
||||
gstream = fopen([path fileSystemRepresentation], "w");
|
||||
#endif
|
||||
if (!gstream)
|
||||
{
|
||||
NSDebugLLog(@"GSContext", @"%@: Could not open printer file %@",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue