This lets the

#define OPENOCD_VERSION

refer to the config.h contents, by moving it below the #include config.h

Please commit, thanks.

Dick

Index: src/openocd.c
===================================================================
--- src/openocd.c	(revision 1570)
+++ src/openocd.c	(working copy)
@@ -24,8 +24,6 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#define OPENOCD_VERSION "Open On-Chip Debugger " VERSION " (" PKGBLDDATE ") "RELSTR PKGBLDREV
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -57,6 +55,10 @@
 #include <unistd.h>
 #include <errno.h>
 
+
+#define OPENOCD_VERSION "Open On-Chip Debugger " VERSION " (" PKGBLDDATE ") "RELSTR PKGBLDREV
+
+
 void print_version(void)
 {
 	/* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to