OpenCascade Linux on PowerPC

Hi all,
I'm trying to compile Open Cascade for Linux on a Power Mac dual G4 1GHz. Everything compiles fine until the compiler encounters the string PPC (which stands for PinpointConstraint) in the code. The thing is that PPC in internally defined by the compiler to tell the code that is about to be compiled on a Power PC! Thus, PPC evaluates to 1 and many nasty errors aries from that.

What do you suggest me to do to solve this problem? PPC is used many times and I would not like to replaces all instances of PPC for something else. This would break the API...


odaigle's picture

Fixed. Ugly hack but it works: added

#ifdef PPC
#undef PPC

At the beginning of inc/Standard.hxx

It now compiles fine ;-)