diff --git a/src/pystencils_autodiff/backends/module.tmpl.cpp b/src/pystencils_autodiff/backends/module.tmpl.cpp
index 9ea13c3c20ae7c06b6f23deb562559fd18a77ca6..7f21938cde1c9c4766212fc4f268f50e032fc5c1 100644
--- a/src/pystencils_autodiff/backends/module.tmpl.cpp
+++ b/src/pystencils_autodiff/backends/module.tmpl.cpp
@@ -1,9 +1,8 @@
+#ifdef _MSC_BUILD
+#define RESTRICT __restrict
+#else
 #define RESTRICT __restrict__
-
-//#if GOOGLE_CUDA
-//#define EIGEN_USE_GPU
-//#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
-//#endif
+#endif
 
 {% for header in headers -%}
 #include {{ header }}