From 93302c03aa0c408bcabdcc8f8de7ee2079d89e4b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 28 Jul 2005 02:45:17 +0000 Subject: [PATCH] add CONST_FUNCTION. See: http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html --- stepmania/src/global.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 118def675b..6177dfc730 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -128,8 +128,10 @@ void ShowWarning( const char *file, int line, const char *message ); // don't pu #if !defined(ALIGN) #if defined(__GNUC__) #define ALIGN(n) __attribute__((aligned(n))) +#define CONST_FUNCTION __attribute__((const)) #else #define ALIGN(n) +#define CONST_FUNCTION #endif #endif