diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake
index 3d2b4a5e04de5041e9a95aa8842f406538238669..4d414a8d6c76084f59505916b917fee631dcb500 100644
--- a/scripts/cmake/CompilerSetup.cmake
+++ b/scripts/cmake/CompilerSetup.cmake
@@ -49,8 +49,12 @@ ENDIF (OGS_PROFILE)
 IF (WIN32)
 	## For Visual Studio compiler
 	IF (MSVC)
-		ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS
-			-D_CRT_XNONSTDC_NO_WARNINGS -D__restrict__=__restrict)
+		ADD_DEFINITIONS(
+			-D_CRT_SECURE_NO_WARNINGS
+			-D_CRT_NONSTDC_NO_WARNINGS
+			-D_CRT_XNONSTDC_NO_WARNINGS
+			-D__restrict__=__restrict   # this fixes #5
+		)
 		# Sets warning level 3 and ignores some warnings
 		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4290 /wd4267")
 	# cygwin