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 }