[cairo] [PATCH 71/71] fix warnings on _BSD_SOURCE
Enrico Weigelt, metux IT consult
enrico.weigelt at gr13.net
Mon Apr 17 16:57:50 UTC 2017
---
src/cairo-cff-subset.c | 1 +
src/cairo-ft-font.c | 1 +
src/cairo-output-stream.c | 1 +
src/cairo-path-stroke-boxes.c | 1 +
src/cairo-path-stroke-polygon.c | 1 +
src/cairo-path-stroke-tristrip.c | 1 +
src/cairo-path-stroke.c | 1 +
src/cairo-pdf-surface.c | 1 +
src/cairo-ps-surface.c | 1 +
src/cairo-scaled-font-subsets.c | 1 +
src/cairo-svg-surface.c | 1 +
src/cairo-toy-font-face.c | 1 +
src/cairo-truetype-subset.c | 1 +
src/cairo-type1-fallback.c | 1 +
src/cairo-type1-subset.c | 2 +-
15 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index 775ca61be..6eecef2fb 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -41,6 +41,7 @@
* http://www.adobe.com/content/dam/Adobe/en/devnet/font/pdfs/5177.Type2.pdf
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 74d43cc2d..cfe05af87 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -38,6 +38,7 @@
* Carl Worth <cworth at cworth.org>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for strdup() */
#include "cairoint.h"
diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c
index 369a59bfb..99ed1fa55 100644
--- a/src/cairo-output-stream.c
+++ b/src/cairo-output-stream.c
@@ -33,6 +33,7 @@
* Kristian Høgsberg <krh at redhat.com>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf() */
#include "cairoint.h"
diff --git a/src/cairo-path-stroke-boxes.c b/src/cairo-path-stroke-boxes.c
index 7f25bf76c..151b02600 100644
--- a/src/cairo-path-stroke-boxes.c
+++ b/src/cairo-path-stroke-boxes.c
@@ -36,6 +36,7 @@
* Chris Wilson <chris at chris-wilson.co.uk>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for hypot() */
#include "cairoint.h"
diff --git a/src/cairo-path-stroke-polygon.c b/src/cairo-path-stroke-polygon.c
index e5082bbec..62ff81e33 100644
--- a/src/cairo-path-stroke-polygon.c
+++ b/src/cairo-path-stroke-polygon.c
@@ -37,6 +37,7 @@
* Chris Wilson <chris at chris-wilson.co.uk>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for hypot() */
#include "cairoint.h"
diff --git a/src/cairo-path-stroke-tristrip.c b/src/cairo-path-stroke-tristrip.c
index 6ce4131cc..eaa09cec1 100644
--- a/src/cairo-path-stroke-tristrip.c
+++ b/src/cairo-path-stroke-tristrip.c
@@ -37,6 +37,7 @@
* Chris Wilson <chris at chris-wilson.co.uk>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for hypot() */
#include "cairoint.h"
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c
index 4d4ede813..aa010ff8e 100644
--- a/src/cairo-path-stroke.c
+++ b/src/cairo-path-stroke.c
@@ -36,6 +36,7 @@
* Chris Wilson <chris at chris-wilson.co.uk>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for hypot() */
#include "cairoint.h"
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index e60d0b9a6..40411ed81 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -39,6 +39,7 @@
* Adrian Johnson <ajohnson at redneon.com>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf() */
#include "cairoint.h"
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 1e020c056..3cfa0751b 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -53,6 +53,7 @@
* 2. Using gs to do PS -> PDF and PDF -> PS will always work well.
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for ctime_r(), snprintf(), strdup() */
#include "cairoint.h"
diff --git a/src/cairo-scaled-font-subsets.c b/src/cairo-scaled-font-subsets.c
index bf05fbd55..9b43c9dde 100644
--- a/src/cairo-scaled-font-subsets.c
+++ b/src/cairo-scaled-font-subsets.c
@@ -40,6 +40,7 @@
* Adrian Johnson <ajohnson at redneon.com>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
#include "cairo-error-private.h"
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c
index 2a020c017..2b545593c 100644
--- a/src/cairo-svg-surface.c
+++ b/src/cairo-svg-surface.c
@@ -39,6 +39,7 @@
* Carl Worth <cworth at cworth.org>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf() */
#include "cairoint.h"
diff --git a/src/cairo-toy-font-face.c b/src/cairo-toy-font-face.c
index 4fe94ab09..785495882 100644
--- a/src/cairo-toy-font-face.c
+++ b/src/cairo-toy-font-face.c
@@ -39,6 +39,7 @@
* Behdad Esfahbod <behdad at behdad.org>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for strdup() */
#include "cairoint.h"
#include "cairo-error-private.h"
diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c
index afd396e1b..0b32a8c85 100644
--- a/src/cairo-truetype-subset.c
+++ b/src/cairo-truetype-subset.c
@@ -40,6 +40,7 @@
* http://www.microsoft.com/typography/specs/default.htm
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c
index 4a657413e..979dfd8ab 100644
--- a/src/cairo-type1-fallback.c
+++ b/src/cairo-type1-fallback.c
@@ -33,6 +33,7 @@
* Adrian Johnson <ajohnson at redneon.com>
*/
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index b15663509..b3e1d4cb4 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -39,7 +39,7 @@
* http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF
*/
-
+#define _DEFAULT_SOURCE
#define _BSD_SOURCE /* for snprintf(), strdup() */
#include "cairoint.h"
--
2.11.0.rc0.7.gbe5a750
More information about the cairo
mailing list