summaryrefslogtreecommitdiff
path: root/gtk/fnmatch.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>1997-12-05 04:29:22 +0000
committerOwen Taylor <otaylor@src.gnome.org>1997-12-05 04:29:22 +0000
commita8cd23de732cff51f4c23f36c6692fcfe0b801a2 (patch)
treea0f50366ad2d409a63e0792a30aab481c367d5e5 /gtk/fnmatch.c
parentbb1aa22b63046d47d30df514aff19c662966e7f8 (diff)
downloadgtk+-a8cd23de732cff51f4c23f36c6692fcfe0b801a2.tar.gz
Don't redefine _GNU_SOURCE if already defined.
-owt
Diffstat (limited to 'gtk/fnmatch.c')
-rw-r--r--gtk/fnmatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/fnmatch.c b/gtk/fnmatch.c
index 04eced312f..f92beb6f1b 100644
--- a/gtk/fnmatch.c
+++ b/gtk/fnmatch.c
@@ -20,10 +20,14 @@ Cambridge, MA 02139, USA. */
#endif
#include <errno.h>
+
/* Added for GTK. We need to make sure that all constants are defined
* to properly compile this file */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include "fnmatch.h"
+
#include <ctype.h>