From 77852cf57258382956c812b5762d1a55d53183b6 Mon Sep 17 00:00:00 2001 From: Jan-E Date: Sun, 13 Mar 2016 18:24:32 +0100 Subject: [PATCH] Use string for NGHTTP2_VERSION_NUM, e.g 0x010800 --- lib/Makefile.msvc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.msvc b/lib/Makefile.msvc index 5ab6a697..411d3a47 100644 --- a/lib/Makefile.msvc +++ b/lib/Makefile.msvc @@ -21,7 +21,7 @@ VER_MAJOR := $(word 1,$(_VERSION)) VER_MINOR := $(word 2,$(_VERSION)) VER_MICRO := $(word 3,$(_VERSION)) 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)'