1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
21 #define strncasecmp _strnicmp
22 #define getcwd _getcwd
23 #define fileno _fileno
25 #define SecuredGetEnv GetEnvironmentVariableA
31 #define usleep(m) std::this_thread::sleep_for(std::chrono::microseconds(m))
39 static inline int SecuredGetEnv(const char *envName, char *buf, int bufLen) {
40 char *pe = getenv(envName);
42 strncpy(buf, pe, bufLen - 1);