From c1bd671b08e47b3568b5740b5c1dfd73a64127c0 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 1 Feb 2013 10:35:38 -0800 Subject: [PATCH] fix prototype when the C compiler has no "no inline" annotation --- src/racket/src/salloc.c | 2 +- src/racket/src/schpriv.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/racket/src/salloc.c b/src/racket/src/salloc.c index fd0fcb2430..55549d19d8 100644 --- a/src/racket/src/salloc.c +++ b/src/racket/src/salloc.c @@ -1640,7 +1640,7 @@ void scheme_enable_garbage_collection(int on) #endif } -MZ_DO_NOT_INLINE(uintptr_t scheme_get_deeper_address(void)) +MZ_DO_NOT_INLINE(uintptr_t scheme_get_deeper_address(void)); uintptr_t scheme_get_deeper_address(void) { diff --git a/src/racket/src/schpriv.h b/src/racket/src/schpriv.h index f04f7e92ab..212a1c70fd 100644 --- a/src/racket/src/schpriv.h +++ b/src/racket/src/schpriv.h @@ -174,11 +174,11 @@ int scheme_num_types(void); #endif #if MZ_USE_NOINLINE -# define MZ_DO_NOT_INLINE(decl) decl __attribute__ ((noinline)); +# define MZ_DO_NOT_INLINE(decl) decl __attribute__ ((noinline)) #elif _MSC_VER -# define MZ_DO_NOT_INLINE(decl) __declspec(noinline) decl; +# define MZ_DO_NOT_INLINE(decl) __declspec(noinline) decl #else -# define MZ_DO_NOT_INLINE(decl) +# define MZ_DO_NOT_INLINE(decl) decl #endif