st/nine: Align stack for entry points
[mesa.git] / src / gallium / state_trackers / nine / nine_flags.h
diff --git a/src/gallium/state_trackers/nine/nine_flags.h b/src/gallium/state_trackers/nine/nine_flags.h
new file mode 100644 (file)
index 0000000..61686a7
--- /dev/null
@@ -0,0 +1,14 @@
+
+
+#ifndef _NINE_FLAGS_H_
+#define _NINE_FLAGS_H_
+
+#include "pipe/p_compiler.h"
+
+/* Incoming 32 bits calls are 4-byte aligned.
+ * We need to realign them to be able to use
+ * SSE and to work with other libraries (llvm, etc)
+ */
+#define NINE_WINAPI WINAPI PIPE_ALIGN_STACK
+
+#endif /* _NINE_FLAGS_H_ */
\ No newline at end of file