Mercurial > vim
comparison src/Make_mvc.mak @ 16005:ce8f501c9ce2 v8.1.1008
patch 8.1.1008: MS-Windows: HAVE_STDINT_H only defined for non-debug version
commit https://github.com/vim/vim/commit/0251d2d8114f2faae0a5822870af2c6118bfbc15
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 14 21:37:19 2019 +0100
patch 8.1.1008: MS-Windows: HAVE_STDINT_H only defined for non-debug version
Problem: MS-Windows: HAVE_STDINT_H only defined for non-debug version.
Solution: Move definition of HAVE_STDINT_H up. (Taro Muraoka, closes https://github.com/vim/vim/issues/4109)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Mar 2019 21:45:14 +0100 |
parents | cdb9cbe731b3 |
children | 6230ff29c39a |
comparison
equal
deleted
inserted
replaced
16004:c35f09b14886 | 16005:ce8f501c9ce2 |
---|---|
624 !if $(MSVC_MAJOR) >= 10 | 624 !if $(MSVC_MAJOR) >= 10 |
625 CFLAGS = $(CFLAGS) /MP | 625 CFLAGS = $(CFLAGS) /MP |
626 !endif | 626 !endif |
627 !endif | 627 !endif |
628 | 628 |
629 # VC10 or later has stdint.h. | |
630 !if $(MSVC_MAJOR) >= 10 | |
631 CFLAGS = $(CFLAGS) -DHAVE_STDINT_H | |
632 !endif | |
629 | 633 |
630 !ifdef NODEBUG | 634 !ifdef NODEBUG |
631 VIM = vim | 635 VIM = vim |
632 !if "$(OPTIMIZE)" == "SPACE" | 636 !if "$(OPTIMIZE)" == "SPACE" |
633 OPTFLAG = /O1 | 637 OPTFLAG = /O1 |
645 !endif | 649 !endif |
646 | 650 |
647 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) | 651 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) |
648 !if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) | 652 !if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) |
649 CFLAGS=$(CFLAGS) $(WP64CHECK) | 653 CFLAGS=$(CFLAGS) $(WP64CHECK) |
650 !endif | |
651 | |
652 # VC10 or later has stdint.h. | |
653 !if $(MSVC_MAJOR) >= 10 | |
654 CFLAGS = $(CFLAGS) -DHAVE_STDINT_H | |
655 !endif | 654 !endif |
656 | 655 |
657 # Static code analysis generally available starting with VS2012 (VC11) or | 656 # Static code analysis generally available starting with VS2012 (VC11) or |
658 # Windows SDK 7.1 (VC10) | 657 # Windows SDK 7.1 (VC10) |
659 !if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10) | 658 !if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10) |