From 3c5087902d30dc717b5eb8aa7fbd1f9831ccdab2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 30 Aug 2019 01:05:58 +0300 Subject: [PATCH] fix msvc build --- compiler/cheaders.v | 1 + vlib/time/time.v | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/cheaders.v b/compiler/cheaders.v index e6650785ca..8ac536a702 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -14,6 +14,7 @@ CommonCHeaders = ' #ifndef _WIN32 #include #include // tolower +#include #endif #ifdef __APPLE__ diff --git a/vlib/time/time.v b/vlib/time/time.v index d785c2b357..a22c5222b9 100644 --- a/vlib/time/time.v +++ b/vlib/time/time.v @@ -14,7 +14,6 @@ const ( $if !windows { #include // sleep -#include //#include /// ^^^^ including this makes the windows build fail. } @@ -367,10 +366,10 @@ pub fn (t Time) relative() string { } pub fn day_of_week(y, m, d int) int { - // Sakomotho's algorithm is explained here: + // Sakomotho's algorithm is explained here: // https://stackoverflow.com/a/6385934 t := [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4] - mut sy := y + mut sy := y if (m < 3) { sy = sy - 1 }