summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-07-29 04:09:18 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-07-29 04:09:18 +0000
commit9423fb8579ccb20d26308b0ca79add74fbe857fa (patch)
tree292216711cada23a3336e0044904bb0150cdb082 /gprof
parent2516b29e948820375d031d75735c68bd41f1880e (diff)
downloadbinutils-redhat-9423fb8579ccb20d26308b0ca79add74fbe857fa.tar.gz
* gprof.h: Don't include gconfig.h twice. Undef conflicting
PACKAGE_* defines.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog5
-rw-r--r--gprof/gprof.h12
2 files changed, 9 insertions, 8 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index 99e2aaab3b..fd4ee03f78 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-29 Alan Modra <amodra@gmail.com>
+
+ * gprof.h: Don't include gconfig.h twice. Undef conflicting
+ PACKAGE_* defines.
+
2012-07-27 Mike Frysinger <vapier@gentoo.org>
* configure.in (BFD_VERSION): Run bfd/configure --version and
diff --git a/gprof/gprof.h b/gprof/gprof.h
index 0856976eef..69527fc29b 100644
--- a/gprof/gprof.h
+++ b/gprof/gprof.h
@@ -29,19 +29,15 @@
#ifndef gprof_h
#define gprof_h
-#include "gconfig.h"
-
-#undef PACKAGE
-
/* Include the BFD sysdep.h file. */
#include "sysdep.h"
#include "bfd.h"
-/* Undefine the BFD PACKAGE and VERSION macros before including the
- gprof config.h file. */
#undef PACKAGE
-#undef VERSION
-
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
#include "gconfig.h"
#ifndef MIN