more mingw quirks

This commit is contained in:
Benjamin Sergeant 2021-03-13 18:55:30 -08:00
parent e63ac69ec6
commit 78a670e0c8
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,8 @@ struct pollfd {
#define POLLIN 0x001 /* There is data to read. */ #define POLLIN 0x001 /* There is data to read. */
#define POLLOUT 0x004 /* Writing now will not block. */ #define POLLOUT 0x004 /* Writing now will not block. */
#define POLLERR 0x008 /* Error condition. */ #define POLLERR 0x008 /* Error condition. */
#define POLLHUP 0x010 /* Hung up. */
#define POLLNVAL 0x020 /* Invalid polling request. */
#endif #endif
#else #else

View File

@ -43,12 +43,16 @@ namespace ix
info.dwThreadID = dwThreadID; info.dwThreadID = dwThreadID;
info.dwFlags = 0; info.dwFlags = 0;
#ifndef __GNUC__
__try __try
{ {
#endif
RaiseException( RaiseException(
MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), (ULONG_PTR*) &info); MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), (ULONG_PTR*) &info);
} }
#ifndef __GNUC__
__except (EXCEPTION_EXECUTE_HANDLER) __except (EXCEPTION_EXECUTE_HANDLER)
#endif
{ {
} }
} }