[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.
このコミットが含まれているのは:
amd-lthakur
2019-08-09 17:23:16 +05:30
committed by Maneesh Gupta
コミット 19ad365834
+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() {