rename:更改宏定义名称

This commit is contained in:
taynpg 2025-02-18 23:32:23 +08:00
parent 732d503396
commit 35c1c4bb89
2 changed files with 5 additions and 6 deletions

View File

@ -13,8 +13,8 @@ if(DEFINED IOS_ISH)
message(STATUS "filecomplete USE IOS_ISH") message(STATUS "filecomplete USE IOS_ISH")
add_definitions(-DIOS_ISH) add_definitions(-DIOS_ISH)
endif() endif()
if(DEFINED MINGW32_XP_BOOST) if(DEFINED USE_BOOST)
message(STATUS "filecomplete use mingw32 xp boost.") message(STATUS "filecomplete use boost lib.")
include_directories(${MBOOST_INCLUDE_DIR}) include_directories(${MBOOST_INCLUDE_DIR})
endif() endif()
@ -34,7 +34,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}
add_library(filecomplete STATIC filecomplete.h filecomplete.cpp) add_library(filecomplete STATIC filecomplete.h filecomplete.cpp)
target_include_directories(filecomplete PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(filecomplete PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
if(DEFINED MINGW32_XP_BOOST) if(DEFINED USE_BOOST)
target_link_directories(filecomplete PRIVATE ${MBOOST_LIB_DIR}) target_link_directories(filecomplete PRIVATE ${MBOOST_LIB_DIR})
target_link_libraries(filecomplete PRIVATE ${MBOOST_LIBS}) target_link_libraries(filecomplete PRIVATE ${MBOOST_LIBS})
endif() endif()

View File

@ -7,7 +7,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#ifdef MINGW32_XP_BOOST #ifdef USE_BOOST
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
namespace fs = boost::filesystem; namespace fs = boost::filesystem;
#else #else
@ -609,7 +609,7 @@ char* fc_readline()
#ifdef OS_UNIX #ifdef OS_UNIX
fc_lock_print(); fc_lock_print();
printf("\033[0m"); printf("\033[0m");
fc_enable_cur(); fc_enable_cur();
fc_unlock_print(); fc_unlock_print();
#endif #endif
return nullptr; return nullptr;
@ -838,4 +838,3 @@ void color_print(const char* text, const COLOR_TYPE color)
#endif #endif
fc_unlock_print(); fc_unlock_print();
} }