From 30976b2217e06a5b34b29f5b192d75e37851ef39 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 2 Jan 2005 22:54:12 +0000 Subject: [PATCH] align macro --- stepmania/src/global.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 7e0a61b3ea..5ac1fd7b5f 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -120,6 +120,14 @@ void NORETURN sm_crash( const char *reason = "Internal error" ); #define PRINTF(a,b) #endif +#if !defined(ALIGN) +#if defined(__GNUC__) +#define ALIGN(n) __attribute__((aligned(n))) +#else +#define ALIGN(n) +#endif +#endif + /* Use CStdString: */ #include "StdString.h"