mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
Only declare "id MemoryExchaustedException" #ifdef __OBJC__. This
allows <objects/objc-malloc.h> to be include in non-ObjC files, i.e. C files. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
52f8925439
commit
d09bb35143
2 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,8 @@ extern void (*objc_free)(void *);
|
|||
((VAR) = (TYPE *) (*objc_calloc)((unsigned)(NUM), sizeof(TYPE)))
|
||||
#define OBJC_FREE(PTR) (*objc_free)((PTR))
|
||||
|
||||
#ifdef __OBJC__
|
||||
extern id MemoryExhaustedException;
|
||||
#endif
|
||||
|
||||
#endif /* __objc_malloc_h_INCLUDE_GNU */
|
||||
|
|
|
@ -44,6 +44,8 @@ extern void (*objc_free)(void *);
|
|||
((VAR) = (TYPE *) (*objc_calloc)((unsigned)(NUM), sizeof(TYPE)))
|
||||
#define OBJC_FREE(PTR) (*objc_free)((PTR))
|
||||
|
||||
#ifdef __OBJC__
|
||||
extern id MemoryExhaustedException;
|
||||
#endif
|
||||
|
||||
#endif /* __objc_malloc_h_INCLUDE_GNU */
|
||||
|
|
Loading…
Reference in a new issue