Added git hash to version number
This commit is contained in:
parent
be33c08738
commit
7bbd877fb5
2 changed files with 16 additions and 3 deletions
10
connect4.c
10
connect4.c
|
|
@ -26,10 +26,16 @@
|
|||
#include "types.h"
|
||||
#include "ui.h"
|
||||
|
||||
#define VERSION 0.1.0
|
||||
#define VERSION 0.1.1
|
||||
|
||||
#ifndef GITHASH
|
||||
#define FULLVERSION VERSION
|
||||
#else
|
||||
#define FULLVERSION VERSION~git.GITHASH
|
||||
#endif
|
||||
|
||||
#define VERSIONSTRING \
|
||||
"AnnaConnect version "XSTR(VERSION)", Copyright (C) Anna Snoeijs\n"
|
||||
"AnnaConnect version "XSTR(FULLVERSION)", Copyright (C) Anna Snoeijs\n"
|
||||
|
||||
// The LISENCE file
|
||||
// Not null-terminated so need pointers for both start and end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue