From 2382038f343fdd56e8ba0a26be8e93f30aed048d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Oct 2015 01:03:11 +0200 Subject: C89 == C90 == ANSI C == Standard C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/slibc/c-version.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include') diff --git a/include/slibc/c-version.h b/include/slibc/c-version.h index 635ddb4..0cd5c3e 100644 --- a/include/slibc/c-version.h +++ b/include/slibc/c-version.h @@ -79,3 +79,20 @@ # endif #endif +/** + * C89, C90, ANSI C and Standard C are all the + * same standard. + */ +#if defined(__C89__) && !defined(__C90__) +# define __C90__ +#endif +#if defined(__C90__) && !defined(__C89__) +# define __C89__ +#endif +#if defined(__ISOC89_SOURCE) && !defined(__ISOC90_SOURCE) +# define __ISOC90_SOURCE +#endif +#if defined(__ISOC90_SOURCE) && !defined(__ISOC89_SOURCE) +# define __ISOC89_SOURCE +#endif + -- cgit v1.2.3-70-g09d2