[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-03-18 08:14:18 +00:00
parent f29bcf2515
commit 822f1fe178
3 changed files with 18 additions and 19 deletions

View file

@ -54,4 +54,4 @@ if(NOT MSVC)
# These flags are not applicable to MSVC # These flags are not applicable to MSVC
set (CMAKE_CXX_FLAGS "${_CXX14_FLAGS} ${CMAKE_CXX_FLAGS}") set (CMAKE_CXX_FLAGS "${_CXX14_FLAGS} ${CMAKE_CXX_FLAGS}")
set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wsign-compare -Wreturn-type ${CMAKE_CXX_FLAGS}") set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wsign-compare -Wreturn-type ${CMAKE_CXX_FLAGS}")
endif() endif()

View file

@ -39,18 +39,17 @@
// Platform-specific includes // Platform-specific includes
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
// Windows-specific user info implementation will be needed // Windows-specific user info implementation will be needed
// Create a pwd.h equivalent for Windows // Create a pwd.h equivalent for Windows
#else #else
#include <pwd.h> #include <pwd.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <time.h> #include <time.h>
#include <unicode.h> #include <unicode.h>
#include <util.h> #include <util.h>
#include <optional> #include <optional>

View file

@ -35,19 +35,19 @@
// Platform-specific UUID handling // Platform-specific UUID handling
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <rpc.h>
#include <rpc.h> #include <windows.h>
// Define uuid_t for Windows compatibility // Define uuid_t for Windows compatibility
typedef UUID uuid_t; typedef UUID uuid_t;
#ifndef uuid_unparse_lower #ifndef uuid_unparse_lower
void uuid_unparse_lower(uuid_t uu, char* out); void uuid_unparse_lower(uuid_t uu, char* out);
#endif #endif
#elif defined(FREEBSD) || defined(OPENBSD) #elif defined(FREEBSD) || defined(OPENBSD)
#include <sys/types.h> #include <sys/types.h>
#include <uuid.h> #include <uuid.h>
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <uuid/uuid.h> #include <uuid/uuid.h>
#endif #endif
// util.cpp // util.cpp