diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-03-12 17:52:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-03-12 17:52:16 +0000 |
commit | 222eb6f1400ab7a51632cbc18b1526664e50c2e4 (patch) | |
tree | 9f18285917922508e0476ed54a267fd9d9555dc5 /src/cairo-truetype-subset.c | |
parent | 2d9203c349ffba863368e85567b2e89443d51746 (diff) |
Define _BSD_SOURCE to enable prototypes for strdup, snprintf.
strdup() and friends require at least _BSD_SOURCE or
_XOPEN_SOURCE >= 500 to be defined for the prototypes to be included.
For the time being, add the define to each source file that requires one
of the BSD functions.
Diffstat (limited to 'src/cairo-truetype-subset.c')
-rw-r--r-- | src/cairo-truetype-subset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c index 6eeafa4b..f143882e 100644 --- a/src/cairo-truetype-subset.c +++ b/src/cairo-truetype-subset.c @@ -34,6 +34,7 @@ * Adrian Johnson <ajohnson@redneon.com> */ +#define _BSD_SOURCE /* for snprintf(), strdup() */ #include "cairoint.h" #include "cairo-scaled-font-subsets-private.h" |