aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-30 17:46:33 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-30 17:48:00 +0200
commit729d3faf98a741dccac30a8d1bc0344ff744a318 (patch)
treee975da07a597322e89185a27549269bc47e10cad /README
parentadd memory allocation functions (diff)
downloadslibc-729d3faf98a741dccac30a8d1bc0344ff744a318.tar.gz
slibc-729d3faf98a741dccac30a8d1bc0344ff744a318.tar.bz2
slibc-729d3faf98a741dccac30a8d1bc0344ff744a318.tar.xz
readme: on extensions
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'README')
-rw-r--r--README13
1 files changed, 12 insertions, 1 deletions
diff --git a/README b/README
index 0dd19b9..6666d46 100644
--- a/README
+++ b/README
@@ -8,10 +8,21 @@ to support older versions of C than C99.
Macro definitions:
- _SLIBC_SOURCE -- Enable slibc extensions.
+ _SLIBC_SOURCE -- Enable slibc extensions. These extensions
+ are usually extensions introduced in other
+ 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.
_PORTABLE_SOURCE -- Unconditionally disable all extensions.
+
+slibc provides some slib-specific extensions that
+do not require _SLIBC_SOURCE. (They are however
+disabled if _PORTABLE_SOURCE is defined.) These
+extensions are defined in header files whose
+name starts with `slibc-`. Headers starting with
+`slibc/` are not extensions, those are internals
+that may change at any time.
+