[v8,08/14] eal: hide GCC extension based alignment markers

Message ID 1682997341-2271-9-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Series msvc integration changes |


Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tyler Retzlaff May 2, 2023, 3:15 a.m. UTC
  When compiling with MSVC don't expose typedefs used as alignment

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
 lib/eal/include/rte_common.h | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index 15765b4..2f464e3 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -460,6 +460,8 @@  static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
 /*********** Structure alignment markers ********/
 /** Generic marker for any place in a structure. */
 __extension__ typedef void    *RTE_MARKER[0];
 /** Marker for 1B alignment in a structure. */
@@ -471,6 +473,8 @@  static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
 /** Marker for 8B alignment in a structure. */
 __extension__ typedef uint64_t RTE_MARKER64[0];
  * Combines 32b inputs most significant set bits into the least
  * significant bits to construct a value with the same MSBs as x