diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-01 01:18:05 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-01 01:18:05 +0000 |
commit | 1743395250abad9010c539459d301ade6c32d746 (patch) | |
tree | fcf123bac776efdd79e9fa3bdcb0130932604d37 /src/openocd.c | |
parent | 214407d9c7496b0da46e63c1f5e36d57684c9581 (diff) | |
download | riscv-openocd-1743395250abad9010c539459d301ade6c32d746.zip riscv-openocd-1743395250abad9010c539459d301ade6c32d746.tar.gz riscv-openocd-1743395250abad9010c539459d301ade6c32d746.tar.bz2 |
Dick Hollenbeck <dick@softplc.com>: move OPENOCD_VERSION to use config.h
git-svn-id: svn://svn.berlios.de/openocd/trunk@1586 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/openocd.c b/src/openocd.c index 084b8a1..56576ee 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -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,11 @@ #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 */ |