Linux 6.19 Goes Ahead and Enables Microsoft C Extensions Support
7 days ago
- #Linux
- #Kernel Development
- #Microsoft C Extensions
- Linux 6.19 enables Microsoft C Extensions support by setting the -fms-extensions compiler option.
- Microsoft C Extensions allow non-standard C/C++ constructs in GCC and LLVM/Clang compilers.
- The main benefit is permitting anonymous use of tagged struct/union in another struct/union for cleaner code.
- Previous attempts to enable -fms-extensions in the Linux kernel failed, but it's now merged in Linux 6.19.
- Btrfs file-system code is an early example of using these extensions.