Undefine POLYVOX_DEPRECATED when compiling with SWIG
We want to wrap the deprecated functions but we don't want to be told off for it. See issue #19
This commit is contained in:
parent
1c61329e67
commit
b71b4dd032
@ -44,6 +44,13 @@ freely, subject to the following restrictions:
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined SWIG
|
||||
//Do nothing in this case
|
||||
#else
|
||||
#undef POLYVOX_DEPRECATED
|
||||
#define POLYVOX_DEPRECATED //Define it to nothing to avoid warnings
|
||||
#endif
|
||||
|
||||
// Now we use the generic helper definitions above to define POLYVOX_API and POLYVOX_LOCAL.
|
||||
// POLYVOX_API is used for the public API symbols. It either imports or exports (or does nothing for static build)
|
||||
// POLYVOX_LOCAL is used for non-api symbols.
|
||||
|
Loading…
x
Reference in New Issue
Block a user