[dtests] refactor windows specific changes (#1313)

* [dtests] refactor windows specific changes

* Refactor hipMemoryAllocateCoherentDriver - PR- 1309

* Fix missing z in _putenv_s

* Revert "Fix missing z in _putenv_s"

This reverts commit 099a1b20a5c75c5f122d57c0ad2bca01745cdc9c.

* Refactor changes from PR 1299

* Update hipEnvVarDriver.cpp
This commit is contained in:
Rahul Garg
2019-08-15 19:13:00 -07:00
committed by Maneesh Gupta
parent 3dd0e988b1
commit 44422065a1
5 changed files with 11 additions and 24 deletions
+8
View File
@@ -95,6 +95,14 @@ THE SOFTWARE.
} \
}
#ifdef _WIN64
#include <tchar.h>
#define aligned_alloc _aligned_malloc
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#endif
// standard command-line variables:
extern size_t N;
extern char memsetval;