change backslash to forward slash in IOC_DIR for Windows

This commit is contained in:
2020-05-15 09:58:34 +02:00
parent e55cfe6632
commit aa43e29a20
+5
View File
@@ -1064,6 +1064,11 @@ int require(const char* module, const char* version, const char* args)
firstTime = 0;
cwd = malloc(PATH_MAX+1);
getcwd(cwd, PATH_MAX);
#ifdef _WIN32
/* convert '\' to '/' */
char* p = cwd;
while ((p = strchr(p, '\\')) != NULL) *p = '/';
#endif
putenvprintf("IOC_DIR=%s/", cwd);
putenvprintf("T_A=%s", targetArch);
putenvprintf("EPICS_HOST_ARCH=%s", targetArch);