From f8dd4816ffd2dc517e8833c0ccc6e1a3e6775a48 Mon Sep 17 00:00:00 2001 From: castano Date: Wed, 13 Nov 2019 00:23:56 -0800 Subject: Integrate microsoft_craziness better. --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5294c5994..c25f7998c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,10 +1,5 @@ // #define NO_ARRAY_BOUNDS_CHECK -#if defined(_WIN32) || defined(_WIN64) -// NOTE(IC): In order to find Visual C++ paths without relying on environment variables. -#include "microsoft_craziness.h" -#endif - #include "common.cpp" #include "timings.cpp" #include "tokenizer.cpp" @@ -27,6 +22,11 @@ gb_global Timings global_timings = {0}; #include "ir_print.cpp" #include "query_data.cpp" +#if defined(GB_SYSTEM_WINDOWS) +// NOTE(IC): In order to find Visual C++ paths without relying on environment variables. +#include "microsoft_craziness.h" +#endif + // NOTE(bill): 'name' is used in debugging and profiling modes i32 system_exec_command_line_app(char *name, char *fmt, ...) { -- cgit v1.2.3