X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstdnoreturn.h;h=c425308cefb67319d05572a345c3866391122b51;hp=5997ff696ec4bfcbe04ca23de4cbaad639fc2829;hb=0bfd3aa28ccec8c35481fe04d1dc82a0f1f522e6;hpb=5d2d7d278a2fabd52a252676c6e5b1bb9be630c7 diff --git a/includes/stdnoreturn.h b/includes/stdnoreturn.h index 5997ff6..c425308 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> +/* _Noreturn -#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 + 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