Protect definition of _GNU_SOURCE.
authorCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2009 05:34:59 +0000 (22:34 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2009 05:34:59 +0000 (22:34 -0700)
I was getting a duplicate definition of this from somewhere, so
getting compiler warnings without this protection.

notmuch-private.h

index 449aff7143e14023ee0b97c9a27824aceeb8b52d..a8ec8ebeee1371e9a5522669a1515be2394ae6d6 100644 (file)
@@ -23,7 +23,9 @@
 
 #include "notmuch.h"
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE /* For getline */
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>