X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=config.h;h=99b186a38e2bacf24b5d8e710b09afe455d66aa4;hb=f0b545b1bc21b2e153590fe034d063d2498174e2;hp=c11195363a50817099eee7bcb6cb61479b6e5638;hpb=b4bfc08c52c75b470b6754818589964fd6ee9787;p=cparser diff --git a/config.h b/config.h index c111953..99b186a 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,11 @@ #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 #define __attribute__(x) #endif