summaryrefslogtreecommitdiff
path: root/src/cairo-cff-subset.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-03-12 17:52:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-03-12 17:52:16 +0000
commit222eb6f1400ab7a51632cbc18b1526664e50c2e4 (patch)
tree9f18285917922508e0476ed54a267fd9d9555dc5 /src/cairo-cff-subset.c
parent2d9203c349ffba863368e85567b2e89443d51746 (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-cff-subset.c')
-rw-r--r--src/cairo-cff-subset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index 1c09492b..a3dc527b 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -34,6 +34,7 @@
* Eugeniy Meshcheryakov <eugen@debian.org>
*/
+#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
#include "cairo-scaled-font-subsets-private.h"
#include "cairo-truetype-subset-private.h"