From c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 31 Aug 2015 22:36:29 +0200 Subject: add _LIBRARY_HEADER MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index 6666d46..f8290fa 100644 --- a/README +++ b/README @@ -13,9 +13,18 @@ Macro definitions: C libraries, but are considered good extensions. _GNU_SOURCE -- Enable glibc extensions (GNU extensions.) _BSD_SOURCE -- Enable BSD extensions. - _SLIBC_SUPPRESS_WARNINGS -- Suppress all #warning, this is primarily - intended to be used when compiling slibc. + _SLIBC_SUPPRESS_WARNINGS -- Suppress all #warning and other warnings, this is + primarily intended to be used when compiling slibc. _PORTABLE_SOURCE -- Unconditionally disable all extensions. + _LIBRARY_HEADER -- Alternative to _PORTABLE_SOURCE that should + be used in header files for libraryes. This + allows you to be sure that your library is + portable between libc:s, and that sources + using your library does not been to be compiled + with the same libc. It is important to use + this instead of _PORTABLE_SOURCE in library + header files, otherwise the user of the library + cannot fully utilise _PORTABLE_SOURCE. slibc provides some slib-specific extensions that -- cgit v1.2.3-70-g09d2