changeset 61:c9fe1c154171

Win: Fixes for building with new DW and attempt to get target cpu from Visual Studio.
author Brian Smith <brian@dbsoft.org>
date Tue, 06 Aug 2019 17:14:21 -0500
parents 9d7aca0879bf
children 8ad0f4c587b0
files makefile.vc statswin.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/makefile.vc	Sat Jul 13 15:44:38 2019 -0500
+++ b/makefile.vc	Tue Aug 06 17:14:21 2019 -0500
@@ -11,8 +11,10 @@
 # Configure settings for the target platform
 #	Default to x86 if not specified
 #
-!if "$(TARGET_CPU)" == ""
+!if "$(VSCMD_ARG_TGT_ARCH)" == ""
 TARGET_CPU=x86
+!else
+TARGET_CPU=$(VSCMD_ARG_TGT_ARCH)
 !endif
 
 !if "$(TARGET_CPU)" == "x86"
--- a/statswin.c	Sat Jul 13 15:44:38 2019 -0500
+++ b/statswin.c	Tue Aug 06 17:14:21 2019 -0500
@@ -1,6 +1,5 @@
-#include <windows.h>
+#include "dw.h"
 #include <iphlpapi.h>
-#include "dw.h"
 
 #define SystemBasicInformation       0
 #define SystemPerformanceInformation 2