summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-20 15:22:01 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-20 15:22:01 -0400
commit5d4fa960a020f40aa8a5d24225c81e5c467ce197 (patch)
tree05c33858f1e2add54af98c865db89a81147ef20b
parent2ec0ae1a6e8aff872d8fc63f7bd61e925c168afe (diff)
allow long long if compiled with msvc
-rw-r--r--main.c1
-rw-r--r--types.h2
2 files changed, 2 insertions, 1 deletions
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 <http://unlicense.org/>
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