Use string for NGHTTP2_VERSION_NUM, e.g 0x010800

This commit is contained in:
Jan-E 2016-03-13 18:24:32 +01:00
parent fa36537f82
commit 77852cf572
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ VER_MAJOR := $(word 1,$(_VERSION))
VER_MINOR := $(word 2,$(_VERSION)) VER_MINOR := $(word 2,$(_VERSION))
VER_MICRO := $(word 3,$(_VERSION)) VER_MICRO := $(word 3,$(_VERSION))
VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO) VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO)
VERSION_NUM := ($(VER_MAJOR) << 16) + ($(VER_MINOR) << 8) + $(VER_MICRO) VERSION_NUM := 0x$(shell if [ ${VER_MAJOR} -lt 10 ] ;then echo 0;fi)$(VER_MAJOR)$(shell if [ ${VER_MINOR} -lt 10 ] ;then echo 0;fi)$(VER_MINOR)$(shell if [ ${VER_MICRO} -lt 10 ] ; then echo 0;fi)$(VER_MICRO)
GENERATED := 'Generated by $(realpath Makefile.MSVC)' GENERATED := 'Generated by $(realpath Makefile.MSVC)'