Fix MingW build
[alexxy/gromacs.git] / src / testutils / integrationtests.cpp
index 89845be1e5086a1f71c9446b17004e312fb14798..77355e17161a080f8b145f7138cd5d448647af81 100644 (file)
@@ -75,7 +75,7 @@ IntegrationTestFixture::IntegrationTestFixture()
     // TODO fix this when we have an encapsulation layer for handling
     // environment variables
 #ifdef GMX_NATIVE_WINDOWS
-    _putenv_s("GMX_MAXBACKUP", s_maxBackup.c_str());
+    _putenv(("GMX_MAXBACKUP="+s_maxBackup).c_str());
 #else
     setenv("GMX_MAXBACKUP", s_maxBackup.c_str(), true);
 #endif