diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-31 22:36:29 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-31 22:39:01 +0200 |
commit | c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa (patch) | |
tree | 4feb0be62f8d486135e58130c7b541330b01f17f /README | |
parent | m (diff) | |
download | slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.gz slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.bz2 slibc-c72a4e5dd7aa33fc04c0c2fb4bf6564f179966aa.tar.xz |
add _LIBRARY_HEADER
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'README')
-rw-r--r-- | README | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |