[dtests] Fix build issues with hipMemoryAllocateCoherentDriver.cpp on windows (#1309)

Compilation error being observed due to popen(), pclose() and setenv() linux calls on windows. Replaced with appropriate calls on windows.

[ROCm/hip commit: 9b31d26237]
Этот коммит содержится в:
amd-lthakur
2019-08-09 17:23:16 +05:30
коммит произвёл Maneesh Gupta
родитель 45652a1fba
Коммит 07ee0e825b
+7
Просмотреть файл
@@ -29,6 +29,13 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include <assert.h>
#include <string>
#include "hip/hip_runtime.h"
#ifdef _WIN64
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#endif
using namespace std;
string getRes() {