minor windows(cygwin) fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23906 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-19 04:12:58 +00:00
parent cbf6072a6c
commit 90593a0dd2
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-10-19 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: Strip path extension from main bundle name on
cygwin.
2006-10-18 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Makefile.postamble:

View file

@ -938,7 +938,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 = [ExecutablePath() lastPathComponent];
#if defined(__WIN32__)
#if defined(__WIN32__) || defined(__CYGWIN__)
toolName = [toolName stringByDeletingPathExtension];
#endif