mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
84613dbfde
commit
4f9d5c0982
6 changed files with 27 additions and 54 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue