eal/windows: add macros required by testpmd

Add required macros by testpmd on Windows in rte_os_shim.h

Signed-off-by: Jie Zhou <jizh@linux.microsoft.com>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
This commit is contained in:
Jie Zhou 2021-06-29 13:50:15 -07:00 committed by Andrew Rybchenko
parent 786881d152
commit 22f463e181

View File

@ -21,6 +21,7 @@
#define strdup(str) _strdup(str)
#define strtok_r(str, delim, saveptr) strtok_s(str, delim, saveptr)
#ifndef RTE_TOOLCHAIN_GCC
#define strcasecmp(s1, s2) _stricmp(s1, s2)
#define strncasecmp(s1, s2, count) _strnicmp(s1, s2, count)
#endif
@ -38,6 +39,14 @@
#define IPPROTO_SCTP 132
#endif
#ifndef IPDEFTTL
#define IPDEFTTL 64
#endif
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
#endif
#ifdef RTE_TOOLCHAIN_GCC
#define TIME_UTC 1