[dtests[ Fix build issues with hipEnvVar*.cpp on windows (#1299)

* replace getopt with clara based command line options

* Removed header getopt.h
Этот коммит содержится в:
ansurya
2019-08-09 17:22:10 +05:30
коммит произвёл Maneesh Gupta
родитель 569f35a258
Коммит fc60f3a95b
3 изменённых файлов: 1214 добавлений и 45 удалений
+8
Просмотреть файл
@@ -30,6 +30,14 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include "hip/hip_runtime.h"
#include <chrono>
#include <thread>
#ifdef _WIN64
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#define unsetenv(x) _putenv_s(x,"")
#endif
using namespace std;
int getDeviceNumber() {