aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/WinDefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Windows/WinDefs.h')
-rw-r--r--CPP/Windows/WinDefs.h17
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
9inline BOOL BoolToBOOL(bool v) { return (v ? TRUE: FALSE); }
10#endif
11
12inline bool BOOLToBool(BOOL v) { return (v != FALSE); }
13
14inline VARIANT_BOOL BoolToVARIANT_BOOL(bool v) { return (v ? VARIANT_TRUE: VARIANT_FALSE); }
15inline bool VARIANT_BOOLToBool(VARIANT_BOOL v) { return (v != VARIANT_FALSE); }
16
17#endif