gallium: Support swig "compiler" in p_compiler.h
authorJakob Bornecrantz <jakob@vmware.com>
Sun, 17 Jan 2010 14:40:49 +0000 (14:40 +0000)
committerJakob Bornecrantz <jakob@vmware.com>
Sun, 17 Jan 2010 16:44:39 +0000 (16:44 +0000)
src/gallium/include/pipe/p_compiler.h

index 18ebd0c948350d0431a9015793e2cde009d5f05e..819f27f6dfb6e06b097442026ae1dae4789911b5 100644 (file)
@@ -162,6 +162,13 @@ typedef unsigned char boolean;
 
 #define PIPE_ALIGN_STACK
 
+#elif defined(SWIG)
+
+#define PIPE_ALIGN_TYPE(_alignment, _type) _type
+#define PIPE_ALIGN_VAR(_alignment)
+
+#define PIPE_ALIGN_STACK
+
 #else
 
 #error "Unsupported compiler"