make objc2 compatibility code compile on mingw

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-19 16:33:44 +00:00
parent 8d72e6f951
commit 42143bb921
5 changed files with 97 additions and 9 deletions

View file

@ -200,6 +200,16 @@ struct StackBlockClass {
const char *types;
};
#if defined(__MINGW32__)
/* FIXME ... evil hack ... declare symbol to avoid linker error on windows
* where the compiler/linker doesn't support a weak reference.
* This obviously breaks the code below...
*/
# if (__GNUC__ <= 3)
void *_NSConcreteStackBlock;
# endif
#endif
/* Copy a block to the heap if it's still on the stack or
* increments its retain count.