aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-12 03:55:33 -0800
committerChris Robinson <[email protected]>2018-01-12 03:55:33 -0800
commit4db1328bc58602619e12f67cb0b31e8785662ed2 (patch)
treee56f4f4011ccec480d27ebeeb4aa8c102eb3818e
parente634564b26091fc315fdc592f4f87fdff86be729 (diff)
Move the FORCE_ALIGN macro to threads.h
-rw-r--r--OpenAL32/Include/alMain.h10
-rw-r--r--common/threads.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 2fe7f71f..60a7daca 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -230,16 +230,6 @@ typedef ALuint64SOFT ALuint64;
*/
#define FAM_SIZE(T, M, N) (offsetof(T, M) + sizeof(((T*)NULL)->M[0])*(N))
-#if defined(__GNUC__) && defined(__i386__)
-/* force_align_arg_pointer is required for proper function arguments aligning
- * when SSE code is used. Some systems (Windows, QNX) do not guarantee our
- * thread functions will be properly aligned on the stack, even though GCC may
- * generate code with the assumption that it is. */
-#define FORCE_ALIGN __attribute__((force_align_arg_pointer))
-#else
-#define FORCE_ALIGN
-#endif
-
#ifdef HAVE_C99_VLA
#define DECL_VLA(T, _name, _size) T _name[(_size)]
#else
diff --git a/common/threads.h b/common/threads.h
index c2848ee7..87b8a6f5 100644
--- a/common/threads.h
+++ b/common/threads.h
@@ -3,6 +3,16 @@
#include <time.h>
+#if defined(__GNUC__) && defined(__i386__)
+/* force_align_arg_pointer is required for proper function arguments aligning
+ * when SSE code is used. Some systems (Windows, QNX) do not guarantee our
+ * thread functions will be properly aligned on the stack, even though GCC may
+ * generate code with the assumption that it is. */
+#define FORCE_ALIGN __attribute__((force_align_arg_pointer))
+#else
+#define FORCE_ALIGN
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif