diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-20 13:11:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-20 13:11:59 +0200 |
commit | c1db97f057e8f20aa26a2342da94eeff1d7a7725 (patch) | |
tree | b795e75ba14bb2b9cab0fbc6aad01cd76b892939 /include | |
parent | 5465c09cd108e37720dbad139de98bdcf5dfe8bf (diff) |
Proper atomic rename? also do not generate mipmap for manga
Diffstat (limited to 'include')
-rw-r--r-- | include/Storage.hpp | 2 | ||||
-rw-r--r-- | include/env.hpp | 59 |
2 files changed, 2 insertions, 59 deletions
diff --git a/include/Storage.hpp b/include/Storage.hpp index 2e9d883..4dab9b3 100644 --- a/include/Storage.hpp +++ b/include/Storage.hpp @@ -33,5 +33,7 @@ namespace QuickMedia { bool save_json_to_file_atomic(const Path &path, const Json::Value &json); bool save_json_to_file_atomic(const Path &path, const rapidjson::Value &json); + int rename_atomic(const char *oldpath, const char *newpath); + bool is_program_executable_by_name(const char *name); }
\ No newline at end of file diff --git a/include/env.hpp b/include/env.hpp deleted file mode 100644 index b842ff3..0000000 --- a/include/env.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once - -#define OS_FAMILY_WINDOWS 0 -#define OS_FAMILY_POSIX 1 - -#define OS_TYPE_WINDOWS 0 -#define OS_TYPE_LINUX 1 - -#if defined(_WIN32) || defined(_WIN64) - #if defined(_WIN64) - #define SYS_ENV_64BIT - #else - #define SYS_ENV_32BIT - #endif - #define OS_FAMILY OS_FAMILY_WINDOWS - #define OS_TYPE OS_TYPE_WINDOWS - - #ifndef UNICODE - #define UNICODE - #endif - - #ifndef _UNICODE - #define _UNICODE - #endif - - #ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN - #endif - - #include <windows.h> -#endif - -#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION) - #define OS_FAMILY OS_FAMILY_POSIX -#endif - -#if defined(__linux__) || defined(__CYGWIN__) - #define OS_TYPE OS_TYPE_LINUX -#endif - -#if defined(__GNUC__) - #if defined(__x86_64__) || defined(__pc64__) - #define SYS_ENV_64BIT - #else - #define SYS_ENV_32BIT - #endif -#endif - -#if !defined(SYS_ENV_32BIT) && !defined(SYS_ENV_64BIT) - #error "System is not detected as either 32-bit or 64-bit" -#endif - -#if !defined(OS_FAMILY) - #error "System not supported. Only Windows and Posix systems supported right now" -#endif - -#if !defined(OS_TYPE) - #error "System not supported. Only Windows and linux systems supported right now" -#endif |