refactor(deps): from *.cpp to *.c

This commit is contained in:
luwenpeng
2024-08-29 09:56:57 +08:00
parent ce49357bbc
commit 419d12760e
15 changed files with 32 additions and 21 deletions

View File

@@ -1,2 +1,2 @@
add_library(timeout STATIC timeout.cpp timeout-bitops.cpp)
add_library(timeout STATIC timeout.c timeout-bitops.c)
target_include_directories(timeout PUBLIC ${CMAKE_CURRENT_LIST_DIR})

View File

@@ -136,7 +136,7 @@
#define WHEEL_MASK (WHEEL_LEN - 1)
#define TIMEOUT_MAX ((TIMEOUT_C(1) << (WHEEL_BIT * WHEEL_NUM)) - 1)
#include "timeout-bitops.cpp"
#include "timeout-bitops.c"
#if WHEEL_BIT == 6
#define ctz(n) ctz64(n)