summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-01-17 14:40:49 +0000
committerJakob Bornecrantz <jakob@vmware.com>2010-01-17 16:44:39 +0000
commit876a6b4865a5ab422b6d80d6248cf66a42869172 (patch)
treed832a5050d3b8a30af0dc88da622fd89772df1f1 /src/gallium/include/pipe/p_compiler.h
parent31c626811a20d74f28cee4c96a756ade2ca81141 (diff)
gallium: Support swig "compiler" in p_compiler.h
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
-rw-r--r--src/gallium/include/pipe/p_compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index 18ebd0c948..819f27f6df 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -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"