mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
avoid a couple of compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39764 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f5288bdf6b
commit
1d2c5edcf1
4 changed files with 15 additions and 7 deletions
|
@ -77,16 +77,19 @@ static Class distantObjectClass = 0;
|
|||
@end
|
||||
/*
|
||||
* Evil hack ... if a remote system wants to know if we conform
|
||||
* to a protocol we usa a local protocol with the same name.
|
||||
* to a protocol we use a local protocol with the same name.
|
||||
*/
|
||||
#ifndef __GNUSTEP_RUNTIME__
|
||||
@interface Object (conformsTo)
|
||||
- (BOOL) conformsTo: (Protocol*)p;
|
||||
@end
|
||||
@implementation Object (NSConformsToProtocolNamed)
|
||||
- (BOOL) _conformsToProtocolNamed: (const char*)aName
|
||||
{
|
||||
Protocol *p;
|
||||
|
||||
p = objc_getProtocol(aName);
|
||||
return [self conformsTo: p];
|
||||
return [(id)self conformsTo: p];
|
||||
}
|
||||
@end
|
||||
#endif
|
||||
|
|
|
@ -24,9 +24,11 @@
|
|||
$Date$ $Revision$
|
||||
*/
|
||||
|
||||
/* define to get system-v functions including inet_aton()
|
||||
/* defines to get system-v functions including inet_aton()
|
||||
* The first define is for old versions of glibc, the second for newer ones
|
||||
*/
|
||||
#define _SVID_SOURCE 1
|
||||
#define _DEFAULT_SOURCE 1
|
||||
|
||||
#import "common.h"
|
||||
#define EXPOSE_NSSocketPortNameServer_IVARS 1
|
||||
|
|
|
@ -42,13 +42,16 @@ static BOOL initialized = NO;
|
|||
#endif
|
||||
|
||||
#if GS_USE_TIMSORT
|
||||
@class GSTimSortDescriptor;
|
||||
@interface GSTimSortPlaceHolder : NSObject
|
||||
@end
|
||||
#endif
|
||||
#if GS_USE_QUICKSORT
|
||||
@class GSQuickSortPlaceHolder;
|
||||
@interface GSQuickSortPlaceHolder : NSObject
|
||||
@end
|
||||
#endif
|
||||
#if GS_USE_SHELLSORT
|
||||
@class GSShellSortPlaceHolder;
|
||||
@interface GSShellSortPlaceHolder : NSObject
|
||||
@end
|
||||
#endif
|
||||
|
||||
@implementation NSSortDescriptor
|
||||
|
|
|
@ -147,10 +147,10 @@ GSPrivateLoadModule(NSString *filename, FILE *errorStream,
|
|||
return objc_loadModule([filename fileSystemRepresentation],
|
||||
loadCallback, &errcode);
|
||||
#else
|
||||
typedef void (*void_fn)();
|
||||
dl_handle_t handle;
|
||||
void __objc_resolve_class_links(void);
|
||||
#if !defined(__ELF__) && !defined(CON_AUTOLOAD)
|
||||
typedef void (*void_fn)();
|
||||
void_fn *ctor_list;
|
||||
int i;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue