ndk: <sys/cdefs.h> minor update

This patch fixes some formatting issues in <sys/cdefs.h>:

- change '#if __STDC_VERSION__ > xxx' into '#if defined(__STDC_VERSION__) && __STDC_VERSION > xxx'
- add __LIBC_HIDDEN__ definition (not technically required, but makes comparing the headers with upstream easier)
This commit is contained in:
David 'Digit' Turner
2012-01-09 13:58:32 +01:00
committed by Andrew Hsieh
parent 7ae589ca49
commit 3da072d28f
2 changed files with 8 additions and 3 deletions

View File

@@ -95,6 +95,10 @@
__asm__(".section _sec\n\t.asciz _str\n\t.previous")
#endif
/* GCC visibility helper macro */
#define __LIBC_HIDDEN__ \
__attribute__ ((visibility ("hidden")))
#define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s)
#define __RCSID(_s) __IDSTRING(rcsid,_s)