Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OSE42 vs WO4

0 views
Skip to first unread message

Jan-Willem de Bruijn

unread,
Oct 13, 1999, 3:00:00 AM10/13/99
to
Sorry, but I cannot find it quickly enough to my taste in the WO4 docs:

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

Bob Beaty

unread,
Oct 13, 1999, 3:00:00 AM10/13/99
to
In <MIZM3.4$Hg7.94@client> "Jan-Willem de Bruijn" wrote:
> 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?

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.


Ryan Dingman

unread,
Oct 13, 1999, 3:00:00 AM10/13/99
to
In <MIZM3.4$Hg7.94@client> "Jan-Willem de Bruijn" wrote:
> Sorry, but I cannot find it quickly enough to my taste in the WO4 docs:
>
> 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

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

-bat.

unread,
Oct 15, 1999, 3:00:00 AM10/15/99
to
ry...@omnigroup.com (Ryan Dingman) writes:
> 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.

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.

0 new messages