diff options
author | pommicket <pommicket@gmail.com> | 2022-02-19 12:21:07 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-02-19 12:21:07 -0500 |
commit | 7deda52af66fab36f71dccf43eaa97336f22f027 (patch) | |
tree | 3c41ce09a85546951c298d29ef7eec5f4b21d20e | |
parent | 9c6b9a1450d6610a37234b016bc1cfb021f30ee8 (diff) |
remove gettimeofday stuff
-rw-r--r-- | 05/Makefile | 2 | ||||
-rw-r--r-- | 05/tcc-0.9.27/tcc.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/05/Makefile b/05/Makefile index 902a7bf..b7dccab 100644 --- a/05/Makefile +++ b/05/Makefile @@ -34,4 +34,4 @@ install-tcc0: $(TCCDIR)/lib/libtcc1.a $(TCCDIR)/include/*.h $(TCC1): $(TCC0) $(TCCINST)/libtcc1.a cd $(TCCDIR) && ./tcc0 tcc.c -o tcc1 clean: - rm -f out* README.html *.out *.o $(TCC0) $(TCC1) $(TCCDIR)/lib/*.[oa] + rm -f out* README.html *.out *.o $(TCCDIR)/tcc[0123456] $(TCCDIR)/tcc[0123456]a $(TCCDIR)/lib/*.[oa] diff --git a/05/tcc-0.9.27/tcc.c b/05/tcc-0.9.27/tcc.c index fdd9305..e824f98 100644 --- a/05/tcc-0.9.27/tcc.c +++ b/05/tcc-0.9.27/tcc.c @@ -236,10 +236,12 @@ static unsigned getclock_ms(void) { #ifdef _WIN32 return GetTickCount(); -#else +#elif 0 struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec*1000 + (tv.tv_usec+500)/1000; +#else + return 0; #endif } |