summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-02-19 15:59:06 -0800
committerCarl Worth <cworth@cworth.org>2010-02-19 15:59:06 -0800
commit6a46fabf7cba2cb61e89005e575d114766c780f6 (patch)
tree71ff96b9f649821cecc5ab301f1a74749c4bfaff
parente5552dda22af1969c72772c843d89af6160bde07 (diff)
Fix "make distcheck" to avoid complaints about duplicate getline definition
The _GNU_SOURCE macro needs to be defined first, (so that now included file includes any C library header (such as stdio.h) without this definition in place. Without this fix, "make check" in the perf directory would fail.
-rw-r--r--perf/cairo-perf-report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c
index 79e2f923..13277de2 100644
--- a/perf/cairo-perf-report.c
+++ b/perf/cairo-perf-report.c
@@ -25,13 +25,14 @@
* Authors: Carl Worth <cworth@cworth.org>
*/
-#include "cairo-perf.h"
-#include "cairo-stats.h"
-
/* We use _GNU_SOURCE for getline and strndup if available. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
+
+#include "cairo-perf.h"
+#include "cairo-stats.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>