From 9d07407ec81605611e303fe870bdeb028471f4d0 Mon Sep 17 00:00:00 2001 From: Jinzhou Zhang Date: Wed, 3 Apr 2019 10:46:26 +0800 Subject: [PATCH] support 64bit --- xc-tutor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xc-tutor.c b/xc-tutor.c index 4620bc8..25526c1 100644 --- a/xc-tutor.c +++ b/xc-tutor.c @@ -5,6 +5,7 @@ #include #include #include +#define int long long // work with 64bit target int token; // current token char *src, *old_src; // pointer to source code string; @@ -97,8 +98,11 @@ int eval() { return 0; } +#undef int // Mac/clang needs this + int main(int argc, char **argv) { + #define int long long // work with 64bit target int i, fd;