I am using Unreal Engine 4 with some external .dll libraries. I have encountered a problem where "PI" is defined in unreal engine core code as "3.141592..." like this:
#define PI (3.1415926535897932f)
However, in the header file supplied with the .dll library I am using, "PI" is the name of a protected member variable of a class:
protected:
SomeDataType PI;
I cant edit the define because it is used in the core files of the Unreal Engine. I believe I can not edit the header file as well as it would no longer match the underlying .dll.
Is there a good solution for this? Can I undefine "PI" locally or something?