未验证 提交 fb6affc0 编写于 作者: Q qinhj 提交者: GitHub

[examples] bug fix: unexpected redefinition of get_current_time while building...

[examples] bug fix: unexpected redefinition of get_current_time while building with libtengine-lite-static.a(1st definition is in cpu_dump.c) (#672)
上级 e675d0b6
......@@ -47,7 +47,7 @@
#endif // _WIN32
#ifdef _WIN32
double get_current_time()
static double get_current_time()
{
LARGE_INTEGER freq;
LARGE_INTEGER pc;
......@@ -58,7 +58,7 @@ double get_current_time()
}
#else // _WIN32
double get_current_time()
static double get_current_time()
{
struct timeval tv;
gettimeofday(&tv, NULL);
......@@ -67,7 +67,7 @@ double get_current_time()
}
#endif // _WIN32
void split(float* array, char* str, const char* del)
static void split(float* array, char* str, const char* del)
{
char* s = NULL;
s = strtok(str, del);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册