summaryrefslogtreecommitdiff
path: root/Source/Core/Common/XSaveWorkaround.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-05-28 12:25:25 +0200
committerPierre Bourdon <delroth@gmail.com>2014-05-28 12:25:25 +0200
commit10efd5b8c031cd2e3f74fbc956d90138498e6c0d (patch)
tree5a61c95a6a8f8f58b1e6ffe7222442945e716671 /Source/Core/Common/XSaveWorkaround.cpp
parent2a14c55279e651e8eebf754498e22846dadf4773 (diff)
parent47a2eb47a0cb96ee7624e8c73b20ca1f0d6d2945 (diff)
Merge pull request #430 from shuffle2/xsave-workaround-fix
msvc C initializers return int...fix EnableXSaveWorkaround when rax doesn't implicitly equal zero.
Diffstat (limited to 'Source/Core/Common/XSaveWorkaround.cpp')
-rw-r--r--Source/Core/Common/XSaveWorkaround.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Common/XSaveWorkaround.cpp b/Source/Core/Common/XSaveWorkaround.cpp
index b54f33eb4b..223eb93b7f 100644
--- a/Source/Core/Common/XSaveWorkaround.cpp
+++ b/Source/Core/Common/XSaveWorkaround.cpp
@@ -7,7 +7,7 @@
#include <math.h>
#include <Windows.h>
-void EnableXSaveWorkaround()
+int __cdecl EnableXSaveWorkaround()
{
// Some Windows environments may have hardware support for AVX/FMA,
// but the OS does not support it. The CRT math library does not support
@@ -20,6 +20,8 @@ void EnableXSaveWorkaround()
{
_set_FMA3_enable(0);
}
+
+ return 0;
}
// Create a segment which is recognized by the linker to be part of the CRT