diff --git a/src/hs.h b/src/hs.h index cdc1ffbc..5f363a60 100644 --- a/src/hs.h +++ b/src/hs.h @@ -39,12 +39,7 @@ * the individual component headers for documentation. */ -/* The current Hyperscan version information. */ - -#define HS_MAJOR 5 -#define HS_MINOR 4 -#define HS_PATCH 9 - +#include "hs_version.h" #include "hs_compile.h" #include "hs_runtime.h" diff --git a/src/hs_version.h.in b/src/hs_version.h.in index 4412730d..67842219 100644 --- a/src/hs_version.h.in +++ b/src/hs_version.h.in @@ -36,5 +36,9 @@ #define HS_VERSION_32BIT ((@HS_MAJOR_VERSION@ << 24) | (@HS_MINOR_VERSION@ << 16) | (@HS_PATCH_VERSION@ << 8) | 0) +#define HS_MAJOR @HS_MAJOR_VERSION@ +#define HS_MINOR @HS_MINOR_VERSION@ +#define HS_PATCH @HS_PATCH_VERSION@ + #endif /* HS_VERSION_H_C6428FAF8E3713 */