Remove 'pragma optimize' in fakepoll.h - if optimizations cause breakage the breakage should be fixed instead of disabling opts
This commit is contained in:
parent
c4dec3fb3a
commit
0dd98d62fc
|
@ -20,11 +20,6 @@
|
||||||
#ifndef _FAKE_POLL_H
|
#ifndef _FAKE_POLL_H
|
||||||
#define _FAKE_POLL_H
|
#define _FAKE_POLL_H
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(disable: 4748)
|
|
||||||
#pragma optimize("",off)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -163,11 +158,6 @@ inline int poll(struct pollfd *pollSet, int pollCount, int pollTimeout)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma optimize("",on)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else // (_WIN32_WINNT < _WIN32_WINNT_VISTA)
|
#else // (_WIN32_WINNT < _WIN32_WINNT_VISTA)
|
||||||
|
|
Loading…
Reference in New Issue