mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
MINGW fixes for building as DLL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_0_0@9495 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d87f3d3eed
commit
51d0029d41
4 changed files with 19 additions and 10 deletions
|
@ -30,12 +30,14 @@
|
|||
|
||||
#if BUILD_libgnustep_base_DLL
|
||||
# define GS_EXPORT __declspec(dllexport)
|
||||
# define GS_DECLARE __declspec(dllexport)
|
||||
#elif libgnustep_base_ISDLL
|
||||
# define GS_EXPORT extern __declspec(dllimport)
|
||||
# define GS_DECLARE __declspec(dllimport)
|
||||
#else
|
||||
# define GS_EXPORT extern
|
||||
# define GS_DECLARE
|
||||
#endif
|
||||
#define GS_DECLARE
|
||||
|
||||
@class NSObject;
|
||||
@class NSString;
|
||||
|
|
|
@ -140,14 +140,21 @@
|
|||
|
||||
@end
|
||||
|
||||
NSObject *NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone);
|
||||
void NSDeallocateObject(NSObject *anObject);
|
||||
NSObject *NSCopyObject(NSObject *anObject, unsigned extraBytes, NSZone *zone);
|
||||
GS_EXPORT NSObject *
|
||||
NSAllocateObject(Class aClass, unsigned extraBytes, NSZone *zone);
|
||||
GS_EXPORT void
|
||||
NSDeallocateObject(NSObject *anObject);
|
||||
GS_EXPORT NSObject *
|
||||
NSCopyObject(NSObject *anObject, unsigned extraBytes, NSZone *zone);
|
||||
|
||||
BOOL NSShouldRetainWithZone(NSObject *anObject, NSZone *requestedZone);
|
||||
unsigned NSExtraRefCount(id anObject);
|
||||
void NSIncrementExtraRefCount(id anObject);
|
||||
BOOL NSDecrementExtraRefCountWasZero(id anObject);
|
||||
GS_EXPORT BOOL
|
||||
NSShouldRetainWithZone(NSObject *anObject, NSZone *requestedZone);
|
||||
GS_EXPORT unsigned
|
||||
NSExtraRefCount(id anObject);
|
||||
GS_EXPORT void
|
||||
NSIncrementExtraRefCount(id anObject);
|
||||
GS_EXPORT BOOL
|
||||
NSDecrementExtraRefCountWasZero(id anObject);
|
||||
|
||||
typedef enum _NSComparisonResult
|
||||
{
|
||||
|
|
|
@ -99,7 +99,7 @@ NSMakeRange(unsigned int location, unsigned int length)
|
|||
|
||||
if (end < location || end < length)
|
||||
{
|
||||
extern void _NSRangeExceptionRaise ();
|
||||
GS_EXPORT void _NSRangeExceptionRaise ();
|
||||
/* NB: The implementation of _NSRangeExceptionRaise is:
|
||||
[NSException raise: NSRangeException
|
||||
format: @"Range location + length too great"]; */
|
||||
|
|
|
@ -70,7 +70,7 @@ NSStringFromRange(NSRange range)
|
|||
range.location, range.length];
|
||||
}
|
||||
|
||||
void _NSRangeExceptionRaise ()
|
||||
GS_EXPORT void _NSRangeExceptionRaise ()
|
||||
{
|
||||
[NSException raise: NSRangeException
|
||||
format: @"Range location + length too great"];
|
||||
|
|
Loading…
Reference in a new issue