Showing the changes to libraries/shared/src/SharedUtil.cpp (1 of 3 files). Show all
Unified · Split
| @@ -26,6 +26,15 @@ · 25 unmodified lines | ||
| 26 | 26 | #include <windows.h> |
| 27 | 27 | #include "CPUIdent.h" |
| 28 | 28 | #include <Psapi.h> |
| 29 | + | |
| 30 | +#if _MSC_VER >= 1900 | |
| 31 | +#pragma comment(lib, "legacy_stdio_definitions.lib") | |
| 32 | +FILE _iob[] = {*stdin, *stdout, *stderr}; | |
| 33 | +extern "C" FILE * __cdecl __iob_func(void) { | |
| 34 | + return _iob; | |
| 35 | +} | |
| 36 | +#endif | |
| 37 | + | |
| 29 | 38 | #endif |
| 30 | 39 | |
| 31 | 40 | |