From 6119ca506117fb3c3ef1a6aaacb958e7adb030e8 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Tue, 10 Jan 2017 19:41:36 +0800 Subject: [PATCH] *added ticks for bcb compiling. --- shell/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shell/main.c b/shell/main.c index b2434a3..7161eaa 100755 --- a/shell/main.c +++ b/shell/main.c @@ -38,6 +38,9 @@ #elif !defined MB_CP_BORLANDC && !defined MB_CP_TCC # include #endif /* MB_CP_VC */ +#ifdef MB_CP_BORLANDC +# include +#endif /* MB_CP_BORLANDC */ #ifndef MB_CP_VC # include #endif /* MB_CP_VC */ @@ -1230,7 +1233,7 @@ static bool_t _process_parameters(int argc, char* argv[]) { #endif /* MB_OS_WIN */ #define _HAS_TICKS -#if defined MB_CP_VC +#if defined MB_CP_VC || defined MB_CP_BORLANDC static int_t _ticks(void) { LARGE_INTEGER li; double freq = 0.0; @@ -1266,9 +1269,9 @@ static int_t _ticks(void) { return (int_t)(ts.tv_sec * 1000 + ts.tv_nsec / 1000000); } -#else /* MB_CP_VC */ +#else /* MB_CP_VC || MB_CP_BORLANDC */ # undef _HAS_TICKS -#endif /* MB_CP_VC */ +#endif /* MB_CP_VC || MB_CP_BORLANDC */ #ifdef _HAS_TICKS static int ticks(struct mb_interpreter_t* s, void** l) {