From 5d4fa960a020f40aa8a5d24225c81e5c467ce197 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 20 Mar 2020 15:22:01 -0400 Subject: allow long long if compiled with msvc --- main.c | 1 + types.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 359588c..e5b493e 100644 --- a/main.c +++ b/main.c @@ -8,6 +8,7 @@ /* TODO: +make casting to #C type work use - use with a decl, e.g. use p : Point; &&, || diff --git a/types.h b/types.h index 96f474f..903e76a 100644 --- a/types.h +++ b/types.h @@ -28,7 +28,7 @@ For more information, please refer to typedef long double Floating; /* OPTIM: Switch to double, but make sure floating-point literals are right */ -#if __STDC_VERSION__ >= 199901 +#if __STDC_VERSION__ >= 199901 || defined _MSC_VER #define LONGLONG_AVAILABLE 1 typedef long long longlong; #else -- cgit v1.2.3