diff --git a/win32/config.h b/win32/config.h
index bc8d8fed176164d315a9fab107bedf3477fe2c02..81819b29ab30a6cc5e8c3c1ba7f338f61e27f94f 100644
--- a/win32/config.h
+++ b/win32/config.h
@@ -42,6 +42,11 @@ POSSIBILITY OF SUCH DAMAGE.
 #pragma warning(disable : 4996)/* This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. */
 #endif
 
+/* Enable SSE functions, if compiled with SSE/SSE2 (note that AMD64 implies SSE2) */
+#if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))
+#define __SSE__               1
+#endif
+
 #include "version.h"
 
 #endif /* CONFIG_H */