predef
predef copied to clipboard
Pre-defined Compiler Macros wiki
There is an ongoing discussion about predefined macros happening on their GitHub: https://github.com/loongson/LoongArch-Documentation/pull/28 GCC and LLVM recently added support for this architecture. But I think, it should be added after...
https://clang.llvm.org/docs/UsersManual.html#microsoft-extensions
>Avoid endianness whenever possible. It is not clear what do you mean here.
https://github.com/cpredef/predef/blob/master/Standards.md#language-standards
See [here.](https://www.intel.com/content/www/us/en/developer/articles/technical/use-predefined-macros-for-specific-code-for-intel-dpcpp-compiler-intel-cpp-compiler-intel-cpp-compiler-classic.html) The clang based compiler defines `__INTEL_LLVM_COMPILER` instead of `__INTEL_COMPILER`. `SYCL_LANGUAGE_VERSION` is present if SYCL is supported.
From predef-contribute mailing list: ``` Hello, on page "https://sourceforge.net/p/predef/wiki/Compilers/" ("Pre-defined Compiler Macros Wiki"), missing some "Borland C++ Pre-defined Compiler Macros": Embarcadero C++Builder/RAD Studio XE5 (0x670) Embarcadero C++Builder/RAD Studio XE6 (0x680)...
On illumos the symbol `__illumos__` is defined as well as all symbols that are defined on (Open)Solaris. https://en.wikipedia.org/wiki/Illumos Tested on OmniOS distro with GCC.
On Haiku the macro `__HAIKU__` is defined (tested with GCC). https://en.wikipedia.org/wiki/Haiku_(operating_system)
**What is missing?** MSYS has its own identifier `__MSYS__`: ```txt $ clang -x c /dev/null -dM -E | grep __MSYS #define __MSYS__ 1 $ gcc -x c /dev/null -dM -E...
miss the define for newlib and dietlibc: https://en.wikipedia.org/wiki/Newlib https://en.wikipedia.org/wiki/Dietlibc