[dpdk-dev] [PATCH] eal: standard c++ forbids defining the keyword asm as a macro

Thomas Monjalon thomas at monjalon.net
Wed Mar 24 09:30:58 CET 2021


24/03/2021 05:26, Tyler Retzlaff:
> +#ifndef __cplusplus
>  #ifndef asm
>  #define asm __asm__
>  #endif
> +#endif

It requires more explanations.
Which compilers do not define asm?
What happens with C++ if asm is undefined?




More information about the dev mailing list