aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-30 05:33:19 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-30 05:33:19 +0000
commit846387fea736de1b3a9358c2f13a17eb306337f6 (patch)
treee86f7f5ec5192e2ab57cb1158daafc25b919f1e4 /main.h
parentadd todo for O_PATH (diff)
downloadportage-utils-846387fea736de1b3a9358c2f13a17eb306337f6.tar.gz
portage-utils-846387fea736de1b3a9358c2f13a17eb306337f6.tar.bz2
portage-utils-846387fea736de1b3a9358c2f13a17eb306337f6.zip
move _q_static setup to main.h and drop useless _GNU_SOURCE here (needs to be before all C lib includes)
Diffstat (limited to 'main.h')
-rw-r--r--main.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.h b/main.h
index 0ccf5ff..fef58a7 100644
--- a/main.h
+++ b/main.h
@@ -1,13 +1,15 @@
/*
* Copyright 2005-2010 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.h,v 1.7 2011/02/21 21:52:55 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.h,v 1.8 2011/03/30 05:33:19 vapier Exp $
*
* Copyright 2005-2010 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2010 Mike Frysinger - <vapier@gentoo.org>
*/
-#define _GNU_SOURCE
+#ifndef _q_static
+# define _q_static static
+#endif
/* make sure our buffers are as big as they can be */
#if PATH_MAX > _POSIX_PATH_MAX /* _Q_PATH_MAX */