use compiler conventions to tell if we are on mswindows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39453 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-04 15:02:07 +00:00
parent 84613dbfde
commit 4f9d5c0982
6 changed files with 27 additions and 54 deletions

View file

@ -301,7 +301,7 @@ AbsolutePathOfExecutable(NSString *path, BOOL atLaunch)
result = [prefix stringByStandardizingPath];
break;
}
#if defined(__WIN32__)
#if defined(_WIN32)
else
{
NSString *extension = [path pathExtension];
@ -1348,7 +1348,7 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
the executable name here - just in case it turns out it's a
tool. */
NSString *toolName = [GSPrivateExecutablePath() lastPathComponent];
#if defined(__WIN32__) || defined(__CYGWIN__)
#if defined(_WIN32) || defined(__CYGWIN__)
toolName = [toolName stringByDeletingPathExtension];
#endif