X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fruntime%2Fruntime.h;h=5768f8a49f6556666faf29da2aac5ab891e2c727;hb=059b8dcf4d34fe9e7b96ed889e19e43b8b98906c;hp=48f0710f7aa8eb246d8060c7cd950debbfadb2cf;hpb=92c8db80e039f60623e53a0b9355cf0a9ec49f3d;p=sbcl.git diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 48f0710..5768f8a 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -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_ */