Fixed cygwin build

This commit is contained in:
Sam Lantinga 2014-04-23 13:54:47 -07:00
parent 45dc89c2c2
commit dfea14d92d
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
#include <objbase.h> /* for CoInitialize/CoUninitialize (Win32 only) */ #include <objbase.h> /* for CoInitialize/CoUninitialize (Win32 only) */
#ifndef _WIN32_WINNT_VISTA
#define _WIN32_WINNT_VISTA 0x0600
#endif
/* Sets an error message based on GetLastError() */ /* Sets an error message based on GetLastError() */
int int
WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr) WIN_SetErrorFromHRESULT(const char *prefix, HRESULT hr)