1 // Copyright (C) 2018 Intel Corporation
3 // SPDX-License-Identifier: Apache-2.0
17 #define strncasecmp _strnicmp
18 #define getcwd _getcwd
19 #define fileno _fileno
21 #define SecuredGetEnv GetEnvironmentVariableA
23 static void usleep(long microSecs) { Sleep(microSecs / 1000); }
30 static inline int SecuredGetEnv(const char *envName, char *buf, int bufLen) {
31 char *pe = getenv(envName);
33 strncpy(buf, pe, bufLen - 1);