From 7389b031ee054699e2df35cee82af1997321d7d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 12 Oct 2015 00:00:00 +0200 Subject: simplified feature-test macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/errno.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/errno.h') diff --git a/include/errno.h b/include/errno.h index fc36695..fde5329 100644 --- a/include/errno.h +++ b/include/errno.h @@ -39,10 +39,10 @@ * assured that the value is thread-dependent * and supported on all revisions of C. */ -volatile int* __errno(void) __GCC_ONLY(__attribute__((const))); /* TODO not implemented */ +volatile int* __errno(void) /* TODO not implemented */ + __GCC_ONLY(__attribute__((const))); -#ifndef __PORTABLE /** * This is the name that was used to invoke the program * running in the current process. This is the value @@ -60,7 +60,7 @@ volatile int* __errno(void) __GCC_ONLY(__attribute__((const))); /* TODO not impl * * This is a GNU and slibc extension. */ -#if defined(_GNU_SOURCE) || defined(_SLIBC_SOURCE) +#if defined(__GNU_SOURCE) || defined(__SLIBC_SOURCE) extern char* program_invocation_name; /* TODO not implemented */ #endif @@ -73,10 +73,9 @@ extern char* program_invocation_name; /* TODO not implemented */ * * This is a GNU extension. */ -#if defined(_GNU_SOURCE) +#if defined(__GNU_SOURCE) extern char* program_invocation_short_name; /* TODO not implemented */ #endif -#endif -- cgit v1.2.3-70-g09d2