diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/Windows/Defs.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,23 @@
     1.4 +// Windows/Defs.h
     1.5 +
     1.6 +#ifndef __WINDOWS_DEFS_H
     1.7 +#define __WINDOWS_DEFS_H
     1.8 +
     1.9 +inline bool BOOLToBool(BOOL value)
    1.10 +  { return (value != FALSE); }
    1.11 +
    1.12 +#ifdef _WIN32
    1.13 +inline bool LRESULTToBool(LRESULT value)
    1.14 +  { return (value != FALSE); }
    1.15 +#endif
    1.16 +
    1.17 +inline BOOL BoolToBOOL(bool value)
    1.18 +  { return (value ? TRUE: FALSE); }
    1.19 +
    1.20 +inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value)
    1.21 +  { return (value ? VARIANT_TRUE: VARIANT_FALSE); }
    1.22 +
    1.23 +inline bool VARIANT_BOOLToBool(VARIANT_BOOL value)
    1.24 +  { return (value != VARIANT_FALSE); }
    1.25 +
    1.26 +#endif