Re: [RFC v2 1/2] eal: add new function versioning macros

2025-03-06 Thread Andre Muezerie
On Thu, Mar 06, 2025 at 01:50:20PM +0100, David Marchand wrote: > For versioning symbols: > - MSVC uses pragmas on the symbol, > - GNU linker uses special asm directives, > > To accommodate both GNU linker and MSVC linker, introduce new macros for > exporting and versioning symbols that will surro

[RFC v2 1/2] eal: add new function versioning macros

2025-03-06 Thread David Marchand
For versioning symbols: - MSVC uses pragmas on the symbol, - GNU linker uses special asm directives, To accommodate both GNU linker and MSVC linker, introduce new macros for exporting and versioning symbols that will surround the whole function. This has the advantage of hiding all the ugly detai