From b6ca74fb9e57bbdd9a7c493314e7054dbb9baa85 Mon Sep 17 00:00:00 2001 From: samr7 Date: Tue, 3 Jul 2012 21:49:23 -0700 Subject: [PATCH] Move version tag to pattern.h. --- keyconv.c | 3 ++- oclvanitygen.c | 2 +- oclvanityminer.c | 2 +- pattern.h | 2 ++ vanitygen.c | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/keyconv.c b/keyconv.c index 0fac934..452c3c1 100644 --- a/keyconv.c +++ b/keyconv.c @@ -14,9 +14,10 @@ #include "winglue.h" #endif +#include "pattern.h" #include "util.h" -const char *version = "0.17"; +const char *version = VANITYGEN_VERSION; static void diff --git a/oclvanitygen.c b/oclvanitygen.c index 0284ea0..92767f4 100644 --- a/oclvanitygen.c +++ b/oclvanitygen.c @@ -30,7 +30,7 @@ #include "util.h" -const char *version = "0.17"; +const char *version = VANITYGEN_VERSION; const int debug = 0; diff --git a/oclvanityminer.c b/oclvanityminer.c index 9d51460..c53f2fe 100644 --- a/oclvanityminer.c +++ b/oclvanityminer.c @@ -34,7 +34,7 @@ #include "util.h" -const char *version = "0.17"; +const char *version = VANITYGEN_VERSION; const int debug = 0; diff --git a/pattern.h b/pattern.h index da1e34e..2364424 100644 --- a/pattern.h +++ b/pattern.h @@ -33,6 +33,8 @@ #include #endif +#define VANITYGEN_VERSION "0.17" + typedef struct _vg_context_s vg_context_t; diff --git a/vanitygen.c b/vanitygen.c index a8c79b9..064dfde 100644 --- a/vanitygen.c +++ b/vanitygen.c @@ -32,7 +32,7 @@ #include "pattern.h" #include "util.h" -const char *version = "0.17"; +const char *version = VANITYGEN_VERSION; typedef struct _vg_thread_context_s { vg_exec_context_t base;