Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _COMMSG_H_
      7 #define _COMMSG_H_
      8 
      9 #define RETURNCODETOHRESULT(rc) (((rc) < 0x10000) ? HRESULT_FROM_WIN32(rc) : (rc))
     10 #define HRESULTTOWIN32(hres) ((HRESULT_FACILITY(hres)==FACILITY_WIN32) ? HRESULT_CODE(hres) : (hres))
     11 
     12 #endif
     13