|
From: | Markus Hitter |
Subject: | Re: [libobjc] May I tweak objc-api.h? |
Date: | Sat, 7 Feb 2004 12:57:27 +0100 |
Am 07.02.2004 um 00:33 schrieb Greg Parker:
How many places does GNUstep actually use struct objc_super's fields? If it's only one or two places then it might be easier to move the conditional to GNUstep's source.#if __GCC_VERSION__ >= 3.5 // or however you spell this my_objc_super->super_class = foo; #else my_objc_super->class = foo; #endifThe choice seems to be compiler-version-check (for those who want to build on an older compiler) versus language-check (for those who want to build on both ObjC and ObjC++).
Thanks, Greg, I just wanted to add exactly this to the thread. runtime-version-check instead of compiler-version-check, to be more exactly :-)
There are lots of functions to abstract the runtime already since we have two different runtimes anyways. This comes in handy here.
Compatibility with an additional set of compilers is well an argument for such a minor change in GNUstep-base, IMHO.
Markus P.S.: You are from Apple *ouch* Don't let anybody know ;-) - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/
[Prev in Thread] | Current Thread | [Next in Thread] |