www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - #undef __SC__ in stl_dm.h

reply Jan Knepper <jan smartsoft.us> writes:
What is the reason that __SC__ is being #undef'ed in stl_dm.h?
I tried to use stlport instead of SGI's stl, but #undef'ing
__SC__ breaks a lot of things in other code that relies on it
such as MFC and ATL header files.

Thanks!
Jan
Mar 18 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Jan Knepper" <jan smartsoft.us> wrote in message
news:3E77D33C.5C7139F5 smartsoft.us...
 What is the reason that __SC__ is being #undef'ed in stl_dm.h?
 I tried to use stlport instead of SGI's stl, but #undef'ing
 __SC__ breaks a lot of things in other code that relies on it
 such as MFC and ATL header files.
It's to disable the anachronistic STLport code that supported the Symantec C++ compiler.
Mar 18 2003
parent reply Jan Knepper <jan smartsoft.us> writes:
Walter wrote:

 What is the reason that __SC__ is being #undef'ed in stl_dm.h?
 I tried to use stlport instead of SGI's stl, but #undef'ing
 __SC__ breaks a lot of things in other code that relies on it
 such as MFC and ATL header files.
It's to disable the anachronistic STLport code that supported the Symantec C++ compiler.
Oh boy! I guess those should be replaced than with #if Jan
Mar 18 2003
next sibling parent "Walter" <walter digitalmars.com> writes:
"Jan Knepper" <jan smartsoft.us> wrote in message
news:3E77ECA8.6C04105A smartsoft.us...
 Walter wrote:

 What is the reason that __SC__ is being #undef'ed in stl_dm.h?
 I tried to use stlport instead of SGI's stl, but #undef'ing
 __SC__ breaks a lot of things in other code that relies on it
 such as MFC and ATL header files.
It's to disable the anachronistic STLport code that supported the
Symantec
 C++ compiler.
Oh boy! I guess those should be replaced than with #if __SC__ <=/>=
That would work better.
Mar 18 2003
prev sibling parent Christof Meerwald <cmeerw web.de> writes:
On Tue, 18 Mar 2003 23:06:00 -0500, Jan Knepper wrote:
 Walter wrote:
 What is the reason that __SC__ is being #undef'ed in stl_dm.h?
 I tried to use stlport instead of SGI's stl, but #undef'ing
 __SC__ breaks a lot of things in other code that relies on it
 such as MFC and ATL header files.
Which version of DMC++ / STLport are you using? (I guess you are using DMC 8.30 with the included STLport)
 It's to disable the anachronistic STLport code that supported the Symantec
 C++ compiler.
Oh boy! I guess those should be replaced than with #if
The current version of STLport for DMC++ (ftp://ftp.digitalmars.com/Digital_Mars_C++/STL/stlport.zip) only undefs __SC__ for building the STLport library itself (but this shouldn't affect your code) - it isn't undef'd anymore for programs that include a STLport header file. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Mar 19 2003