Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions xc-tutor.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#define int long long // work with 64bit target

int token; // current token
char *src, *old_src; // pointer to source code string;
Expand Down Expand Up @@ -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;

Expand Down