X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.h;h=269042c3b50e86754dc12084a7eb0494ffd3d7cf;hb=5e92e9ed61903658015c2a75c79a32ad41dbd29d;hp=48f0710f7aa8eb246d8060c7cd950debbfadb2cf;hpb=92c8db80e039f60623e53a0b9355cf0a9ec49f3d;p=sbcl.git diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 48f0710..269042c 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -148,11 +148,15 @@ 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 #endif /* _SBCL_RUNTIME_H_ */