summaryrefslogtreecommitdiff
path: root/xcursorgen.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-08-20 16:40:19 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-20 16:40:19 -0700
commitc2c7f8b3f8301f3f47af514627631acdb5aae109 (patch)
treec3e5ad92df62657f110945a522add7d8bccbc628 /xcursorgen.c
parentfb4fc37392c441e5e970ac68fc366758dac4a560 (diff)
Use PACKAGE_VERSION for --version output
Diffstat (limited to 'xcursorgen.c')
-rw-r--r--xcursorgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xcursorgen.c b/xcursorgen.c
index 3c87f16..3fee181 100644
--- a/xcursorgen.c
+++ b/xcursorgen.c
@@ -23,6 +23,8 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -34,8 +36,6 @@
#include <png.h>
-#define VERSION_STR "0.1"
-
struct flist
{
int size;
@@ -382,7 +382,7 @@ main (int argc, char *argv[])
{
if (strcmp (argv[i], "-V") == 0 || strcmp (argv[i], "--version") == 0)
{
- printf ("xcursorgen version %s\n", VERSION_STR);
+ printf ("xcursorgen version %s\n", PACKAGE_VERSION);
return 0;
}