diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-06-25 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2026-06-26 11:00:29 +0500 |
| commit | f9d78aff31a5f2521ae7ddbdc97c4a8855808959 (patch) | |
| tree | bf7e13577f75aa4c7c56af1153d6fa15c6052445 /CPP/Windows/WinDefs.h | |
| parent | 8c63d71ff886bda90c86db28466287f977374237 (diff) | |
| download | 7zip-main.tar.gz 7zip-main.tar.bz2 7zip-main.zip | |
Diffstat (limited to 'CPP/Windows/WinDefs.h')
| -rw-r--r-- | CPP/Windows/WinDefs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CPP/Windows/WinDefs.h b/CPP/Windows/WinDefs.h new file mode 100644 index 0000000..86512d2 --- /dev/null +++ b/CPP/Windows/WinDefs.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | // Windows/Defs.h | ||
| 2 | |||
| 3 | #ifndef ZIP7_INC_WINDOWS_WIN_DEFS_H | ||
| 4 | #define ZIP7_INC_WINDOWS_WIN_DEFS_H | ||
| 5 | |||
| 6 | #include "../Common/MyWindows.h" | ||
| 7 | |||
| 8 | #ifdef _WIN32 | ||
| 9 | inline BOOL BoolToBOOL(bool v) { return (v ? TRUE: FALSE); } | ||
| 10 | #endif | ||
| 11 | |||
| 12 | inline bool BOOLToBool(BOOL v) { return (v != FALSE); } | ||
| 13 | |||
| 14 | inline VARIANT_BOOL BoolToVARIANT_BOOL(bool v) { return (v ? VARIANT_TRUE: VARIANT_FALSE); } | ||
| 15 | inline bool VARIANT_BOOLToBool(VARIANT_BOOL v) { return (v != VARIANT_FALSE); } | ||
| 16 | |||
| 17 | #endif | ||
