mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix to compile under windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19876 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
885883dcbe
commit
83d6c451f2
3 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-08-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPort.m, Source/NSPortNameServer.m: Fix port type
|
||||
selection for windows.
|
||||
|
||||
2004-08-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPropertyList.m: don't escape single quotes unnecessarily.
|
||||
|
|
|
@ -67,6 +67,7 @@ Class NSPort_concrete_class;
|
|||
if (self == [NSPort class])
|
||||
{
|
||||
NSPort_abstract_class = self;
|
||||
#ifndef __MINGW__
|
||||
/* Must be kept in sync with [NSPortNameServer
|
||||
+systemDefaultPortNameServer]. */
|
||||
if (GSUserDefaultsFlag(GSMacOSXCompatible) == YES
|
||||
|
@ -79,6 +80,9 @@ Class NSPort_concrete_class;
|
|||
{
|
||||
NSPort_concrete_class = [NSSocketPort class];
|
||||
}
|
||||
#else
|
||||
NSPort_concrete_class = [NSSocketPort class];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,10 +60,13 @@
|
|||
* dealing with NSMessagePort objects, but that is incompatible
|
||||
* with OpenStep/OPENSTEP/NeXTstep behavior, so GNUstep returns
|
||||
* a name server which deals with NSSocketPort objects capable
|
||||
* of being used for inter-host communications.
|
||||
* of being used for inter-host communications... unless it
|
||||
* is running in compatibility mode.<br />
|
||||
* This may change in future releases.
|
||||
*/
|
||||
+ (id) systemDefaultPortNameServer
|
||||
{
|
||||
#ifndef __MINGW__
|
||||
/* Must be kept in sync with [NSPort +initialize]. */
|
||||
if (GSUserDefaultsFlag(GSMacOSXCompatible) == YES
|
||||
|| [[NSUserDefaults standardUserDefaults]
|
||||
|
@ -75,6 +78,9 @@
|
|||
{
|
||||
return [NSSocketPortNameServer sharedInstance];
|
||||
}
|
||||
#else
|
||||
return [NSSocketPortNameServer sharedInstance];
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
Loading…
Reference in a new issue