diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-12 00:00:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-12 00:00:00 +0200 |
commit | 7389b031ee054699e2df35cee82af1997321d7d7 (patch) | |
tree | 39e410b8a0b448c8294d35e8e3ebb0c0d8eb055d /include/errno.h | |
parent | add zalloc (diff) | |
download | slibc-7389b031ee054699e2df35cee82af1997321d7d7.tar.gz slibc-7389b031ee054699e2df35cee82af1997321d7d7.tar.bz2 slibc-7389b031ee054699e2df35cee82af1997321d7d7.tar.xz |
simplified feature-test macros
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | include/errno.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 |