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:
rfm 2006-02-22 10:19:13 +00:00
parent 886cba4ca4
commit 20ceece1cb
2 changed files with 13 additions and 4 deletions

View file

@ -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 %@",