annotate src/win32/7zip/7z/CPP/Windows/Defs.h @ 4:5f6f2134e8ce

apu appears to not be used
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:35:58 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 // Windows/Defs.h
rlm@1 2
rlm@1 3 #ifndef __WINDOWS_DEFS_H
rlm@1 4 #define __WINDOWS_DEFS_H
rlm@1 5
rlm@1 6 inline bool BOOLToBool(BOOL value)
rlm@1 7 { return (value != FALSE); }
rlm@1 8
rlm@1 9 #ifdef _WIN32
rlm@1 10 inline bool LRESULTToBool(LRESULT value)
rlm@1 11 { return (value != FALSE); }
rlm@1 12 #endif
rlm@1 13
rlm@1 14 inline BOOL BoolToBOOL(bool value)
rlm@1 15 { return (value ? TRUE: FALSE); }
rlm@1 16
rlm@1 17 inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value)
rlm@1 18 { return (value ? VARIANT_TRUE: VARIANT_FALSE); }
rlm@1 19
rlm@1 20 inline bool VARIANT_BOOLToBool(VARIANT_BOOL value)
rlm@1 21 { return (value != VARIANT_FALSE); }
rlm@1 22
rlm@1 23 #endif