summaryrefslogtreecommitdiff
path: root/src/cairo-type1-fallback.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-type1-fallback.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-type1-fallback.c')
-rw-r--r--src/cairo-type1-fallback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index 219bd3977..b465a13e7 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -33,6 +33,7 @@
* Adrian Johnson <ajohnson@redneon.com>
*/
+#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
#include "cairo-type1-private.h"
#include "cairo-scaled-font-subsets-private.h"