mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f29bcf2515
commit
822f1fe178
3 changed files with 18 additions and 19 deletions
|
@ -54,4 +54,4 @@ if(NOT MSVC)
|
|||
# These flags are not applicable to MSVC
|
||||
set (CMAKE_CXX_FLAGS "${_CXX14_FLAGS} ${CMAKE_CXX_FLAGS}")
|
||||
set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wsign-compare -Wreturn-type ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
|
|
13
src/recur.h
13
src/recur.h
|
@ -39,18 +39,17 @@
|
|||
|
||||
// Platform-specific includes
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
// Windows-specific user info implementation will be needed
|
||||
// Create a pwd.h equivalent for Windows
|
||||
#include <windows.h>
|
||||
// Windows-specific user info implementation will be needed
|
||||
// Create a pwd.h equivalent for Windows
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <unicode.h>
|
||||
|
||||
#include <util.h>
|
||||
|
||||
#include <optional>
|
||||
|
|
22
src/util.h
22
src/util.h
|
@ -35,19 +35,19 @@
|
|||
|
||||
// Platform-specific UUID handling
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <rpc.h>
|
||||
// Define uuid_t for Windows compatibility
|
||||
typedef UUID uuid_t;
|
||||
#ifndef uuid_unparse_lower
|
||||
void uuid_unparse_lower(uuid_t uu, char* out);
|
||||
#endif
|
||||
#include <rpc.h>
|
||||
#include <windows.h>
|
||||
// Define uuid_t for Windows compatibility
|
||||
typedef UUID uuid_t;
|
||||
#ifndef uuid_unparse_lower
|
||||
void uuid_unparse_lower(uuid_t uu, char* out);
|
||||
#endif
|
||||
#elif defined(FREEBSD) || defined(OPENBSD)
|
||||
#include <sys/types.h>
|
||||
#include <uuid.h>
|
||||
#include <sys/types.h>
|
||||
#include <uuid.h>
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include <sys/types.h>
|
||||
#include <uuid/uuid.h>
|
||||
#endif
|
||||
|
||||
// util.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue