X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.h;h=2fce3fd792a96a467285eddff3dcc335bce4ae57;hb=2cb068e245e00505076e9c325424df2a1260bfb1;hp=48f0710f7aa8eb246d8060c7cd950debbfadb2cf;hpb=92c8db80e039f60623e53a0b9355cf0a9ec49f3d;p=sbcl.git diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 48f0710..2fce3fd 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -37,7 +37,7 @@ * problem.. */ #define QSHOW_SIGNALS 0 -#ifdef QSHOW_SIGNALS +#if QSHOW_SIGNALS #define FSHOW_SIGNAL FSHOW #else #define FSHOW_SIGNAL(args) @@ -148,11 +148,18 @@ typedef int boolean; /* KLUDGE: As far as I can tell there's no ANSI C way of saying * "this function never returns". This is the way that you do it - * in GCC later than version 2.7 or so. If you are using some - * compiler that doesn't understand this, you could could just - * change it to "typedef void never_returns" and nothing would - * break, though you might get a few more bytes of compiled code or - * a few more compiler warnings. -- WHN 2000-10-21 */ -typedef volatile void never_returns; + * in GCC later than version 2.5 or so. */ +#if defined(__GNUC__) +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5) +#define never_returns __attribute__ ((noreturn)) +#else +#define never_returns +#endif +#else +#define never_returns +#endif + +extern void *successful_malloc (size_t size); +extern char *copied_string (char *string); #endif /* _SBCL_RUNTIME_H_ */