X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstdnoreturn.h;h=8c1814328fc9b6c7a281004b7b9b28f0572f2095;hp=5997ff696ec4bfcbe04ca23de4cbaad639fc2829;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=b41576197133c1211d6ec353faf93f505f573b8a diff --git a/includes/stdnoreturn.h b/includes/stdnoreturn.h index 5997ff6..8c18143 100644 --- a/includes/stdnoreturn.h +++ b/includes/stdnoreturn.h @@ -1,16 +1,12 @@ -#ifndef _PDCLIB_STDNORETURN_H -#define _PDCLIB_STDNORETURN_H -#include <_PDCLIB_aux.h> - -#ifndef __cplusplus -/* This is problematic - if we don't define it, then C code can't be compiled - * on a C++ compiler. If we do define it, then we break all instances of C++ - * [[noreturn]] - * - * This does not appear well thought out... - */ -#define noreturn _PDCLIB_noreturn -#endif - - -#endif +/* _Noreturn + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#ifndef _PDCLIB_STDNORETURN_H +#define _PDCLIB_STDNORETURN_H _PDCLIB_STDNORETURN_H + +#define noreturn _Noreturn + +#endif