From 5c88f2e49f189b97fa5415b5e631e594b8b30fe3 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Thu, 8 Nov 2012 10:10:01 +0000 Subject: [PATCH] Inform SWIG of the meaning of the POLYVOX_DEPRECATED command in Linux If the bindings fail to build on Windows, we might need to add an equivalent there too. --- library/bindings/PolyVoxCore.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/bindings/PolyVoxCore.i b/library/bindings/PolyVoxCore.i index c2f0feb3..f669a6cc 100644 --- a/library/bindings/PolyVoxCore.i +++ b/library/bindings/PolyVoxCore.i @@ -1,6 +1,7 @@ %module PolyVoxCore #define POLYVOX_API +#define __attribute__(x) //Silence DEPRECATED errors //This macro allows us to use Python properties on our classes %define PROPERTY(type,name,getter,setter) @@ -42,4 +43,5 @@ const char* __str__() { %include "MarchingCubesSurfaceExtractor.i" //%include "CubicSurfaceExtractor.i" //%include "CubicSurfaceExtractorWithNormals.i" -//%include "MeshDecimator.i" \ No newline at end of file +//%include "MeshDecimator.i" +