view src/win32/7zip/7z/CPP/Windows/Defs.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 // Windows/Defs.h
3 #ifndef __WINDOWS_DEFS_H
4 #define __WINDOWS_DEFS_H
6 inline bool BOOLToBool(BOOL value)
7 { return (value != FALSE); }
9 #ifdef _WIN32
10 inline bool LRESULTToBool(LRESULT value)
11 { return (value != FALSE); }
12 #endif
14 inline BOOL BoolToBOOL(bool value)
15 { return (value ? TRUE: FALSE); }
17 inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value)
18 { return (value ? VARIANT_TRUE: VARIANT_FALSE); }
20 inline bool VARIANT_BOOLToBool(VARIANT_BOOL value)
21 { return (value != VARIANT_FALSE); }
23 #endif