zydis icon indicating copy to clipboard operation
zydis copied to clipboard

Remove typecasts from version macros

Open ksco opened this issue 6 months ago • 0 comments

Using typecasts in version macros prevents them from being used in the #if directive. According to the GCC documentation [1], the #if directive only allows integer constant expressions, and typecasts are not permitted in such expressions.

This change removes the typecasts from the version macros, allowing them to be used in preprocessor conditionals.

[1] https://gcc.gnu.org/onlinedocs/cpp/If.html

ksco avatar Jun 09 '25 14:06 ksco