better version handling
This commit is contained in:
@@ -16,13 +16,6 @@
|
||||
#define C_STD "C89"
|
||||
#endif
|
||||
|
||||
#ifndef GIT_HASH
|
||||
#define GIT_HASH "0000000000"
|
||||
#endif
|
||||
|
||||
#ifndef GIT_COMMITS
|
||||
#define GIT_COMMITS "1"
|
||||
#endif
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
3
include/version.h.in
Normal file
3
include/version.h.in
Normal file
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
#define GIT_HASH "@GIT_HASH@"
|
||||
#define GIT_COMMITS "@GIT_COMMITS@"
|
||||
Reference in New Issue
Block a user