X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Fmh.h;h=97c7769b66faa19488db631f72f32376a13416b4;hb=ef8679ef6af0ba01d8dc43df577c5962037f13bd;hp=bcfe6ae9d6ce7e770998c850a176f371af61780f;hpb=56a805299de35d8924969138aef4d0f1580daa6d;p=mmh diff --git a/h/mh.h b/h/mh.h index bcfe6ae..97c7769 100644 --- a/h/mh.h +++ b/h/mh.h @@ -29,6 +29,15 @@ #endif typedef unsigned char boolean; /* not int so we can pack in a structure */ +/* If we're using gcc then give it some information about + * functions that abort. + */ +#if __GNUC__ > 2 +#define NORETURN __attribute__((__noreturn__)) +#else +#define NORETURN +#endif + /* * user context/profile structure */ @@ -336,7 +345,7 @@ extern char *vmhproc; extern char *whatnowproc; extern char *whomproc; -extern int (*done) (int); +extern void (*done) (int) NORETURN; #include