Tidied for windoze

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14328 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-08-25 08:41:29 +00:00
parent 589ec2569d
commit 8b1fc0e981
5 changed files with 15 additions and 1490 deletions

View file

@ -36,6 +36,7 @@
#include <Foundation/NSLock.h>
#include <Foundation/NSFileHandle.h>
#include <Foundation/NSDebug.h>
#include <Foundation/NSProcessInfo.h>
#include <Foundation/GSMime.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
@ -233,7 +234,8 @@ static void debugWrite(NSData *data)
urlCache = [NSMutableDictionary new];
urlLock = [NSLock new];
debugLock = [NSLock new];
sprintf(debugFile, "/tmp/GSHTTP.%d", getpid());
sprintf(debugFile, "/tmp/GSHTTP.%d",
[[NSProcessInfo processInfo] processIdentifier]);
#ifndef __MINGW__
sslClass = [NSFileHandle sslClass];
#endif

View file

@ -718,12 +718,13 @@ failure:
{
char thePath[BUFSIZ*2+8];
char theRealPath[BUFSIZ*2];
FILE *theFile;
int c;
#if defined(__MINGW__)
NSString *tmppath = path;
HANDLE fh;
DWORD wroteBytes;
#else
FILE *theFile;
#endif

File diff suppressed because it is too large Load diff