Linux: PhysX headers have enum names which are also macros in X11/X.h


I just wanted to make you aware of an issue I’ve had whilst trying to integrate PhysX with my Linux. I’ve posted a detailed explanation on Stack Overflow, but the gist of it is that some of the enumerators used in the PhysX headers use names (“None” and “Success”) which are also used as macros in X11’s headers, causing compile errors.

The fine folks at SO have suggested some workarounds (as I understand it, the consensus seems to be that the X11 headers have broken syntactic convention), but I just wanted to pass it on for anyone else who stumbles across it. :)

Hope that helps,
~Richard Williams