1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
17 #define strncasecmp _strnicmp
18 #define getcwd _getcwd
19 #define fileno _fileno
21 #define SecuredGetEnv GetEnvironmentVariableA
27 #define usleep(m) std::this_thread::sleep_for(std::chrono::microseconds(m))
35 static inline int SecuredGetEnv(const char *envName, char *buf, int bufLen) {
36 char *pe = getenv(envName);
38 strncpy(buf, pe, bufLen - 1);