To be able to compile the same source code for both OPENSTEP Enterprise 4.2
for Windows NT (or Mach/UNIX) and WebObjects 4.0.1 (Yellow Box, MacOS X),
which predefined macro(s) can I use to distinguish between them?
As in:
#ifdef OSE42
makeObjectsPerform:
#else
makeObjectsPerformSelector:
#endif
Thanks in advance,
Jan-Willem
I've used WIN32 for the difference between OS 4.2/Mach and OS 4.2/NT.
Basically, NT parts are #ifdef-ed with WIN32 and the Mach parts are
#else-ed.
I have no idea about WebObjects - I've never used it.
Thanks,
Bob (bobb...@mediaone.net)
The Man from S.P.U.D.
We will write no code before it's designed.
There really aren't any predefined macros that distiguish between OSE4.2
and WOF4. However, in OmniBase we've created some #define's that will let
you distinguish between the two. The source code for OmniBase is available
at http://www.omnigroup.com/community/developer/sourcecode/ under the Omni
Source License. The code that you are looking for is in SystemType.h in
the top level of the project.
Hope this helps
ryan
--
Ryan Dingman
The Omni Group
ry...@omnigroup.com
Out of interestm, what do people do about the paths in the Makefiles
to enable them to compile between the two systems ? This is a constant
source of irritation to me...
-bat.