[PATCH] provide Windows/MSVC lcore macros
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Jul 10 23:29:44 CEST 2023
Provide MSVC compatible macros RTE_DEFINE_PER_LCORE and
RTE_DECLARE_PER_LCORE that expand appropriately for Windows/MSVC
NOTICE:
It is intentional that devtools/checkpatches.pl generates an error
about parenthesis to allow comparison with clang/gcc versions of
these macros which also do not have the parenthesis.
```
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthesis
#31: FILE: lib/eal/include/rte_per_lcore.h:42:
+#define RTE_DEFINE_PER_LCORE(type, name) \
+ __declspec(thread) typeof(type) per_lcore_##name
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthesis
#34: FILE: lib/eal/include/rte_per_lcore.h:45:
+#define RTE_DECLARE_PER_LCORE(type, name) \
+ extern __declspec(thread) typeof(type) per_lcore_##name
```
Tyler Retzlaff (1):
eal: provide per lcore macros for MSVC
lib/eal/include/rte_per_lcore.h | 8 ++++++++
1 file changed, 8 insertions(+)
--
1.8.3.1
More information about the dev
mailing list