diff options
-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 } |