X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=config.h;h=e382f50747449fc7f7d1f5249901593bceae2a44;hb=4870808df016482ba8248fcbf8a7792f58884fea;hp=c11195363a50817099eee7bcb6cb61479b6e5638;hpb=b4bfc08c52c75b470b6754818589964fd6ee9787;p=cparser diff --git a/config.h b/config.h index c111953..e382f50 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,13 @@ #define INLINE inline -#ifndef __GCC__ +#ifdef __GNUC__ +#define NORETURN __attribute__((noreturn)) +#elif defined _MSC_VER +#define NORETURN __declspec(noreturn) #define __attribute__(x) +#else +#define NORETURN +#ifndef __attribute__ +#define __attribute__(x) +#endif #endif