predef-contribute Mailing List for Pre-defined Compiler Macros
Brought to you by:
breese,
tahonermann
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(8) |
Jun
(5) |
Jul
(5) |
Aug
(9) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
(8) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(2) |
Feb
(11) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(11) |
Aug
|
Sep
(2) |
Oct
(3) |
Nov
(2) |
Dec
(2) |
| 2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
|
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2011 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
(1) |
Oct
(2) |
Nov
(3) |
Dec
(4) |
| 2012 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
(8) |
Nov
(5) |
Dec
(8) |
| 2013 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(5) |
May
|
Jun
|
Jul
(5) |
Aug
(5) |
Sep
(2) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2014 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(4) |
| 2015 |
Jan
|
Feb
(3) |
Mar
(6) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
|
| 2016 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(2) |
Nov
|
Dec
|
| 2023 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
(1) |
Nov
|
Dec
(4) |
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
|
From: Bjorn R. <br...@st...> - 2025-09-08 14:11:00
|
Hi Jim. Thanks for the information. The predef pages have migrated to: https://github.com/cpredef/predef Unfortunately SourceForge does not make it easy to redirect the old pages to the new. On 9/6/25 20:24, Jim O'Hagan wrote: > Hello, > > C and C++ have updated, thus the values of __STDC_VERSION__ and > __cplusplus have changed on the Language Standards page. > > C23 is 202311 > C++20 is 202002, C++23 is 202303. > > Thanks for keeping this list available. |
|
From: Jim O'H. <joh...@gm...> - 2025-09-06 18:24:27
|
Hello, C and C++ have updated, thus the values of __STDC_VERSION__ and __cplusplus have changed on the Language Standards page. C23 is 202311 C++20 is 202002, C++23 is 202303. Thanks for keeping this list available. -Jim |
|
From: <pe...@ou...> - 2025-04-01 04:56:57
|
Hello, I would like to suggest some changes and additions to the structure of the predefinitions in the md documents according to the manuals. compiler CC65<http://en.wikipedia.org/wiki/Cc65> __CC65__ is compiler identification and cpu 6502 architecture too only in CC65 compiler environment KEIL CARM<http://www.keil.com/arm/carm.asp>/51/166 __CA__ ARM cpu architecture __C166__ C166 cpu various manufacturers architecture __C51__ and __CX51__ is MCS51 Intel mcu architecture __C251__ is MCS251 Intel mcu architecture and __KEIL__ is the compiler signature, but I haven't found it in any documentation yet, I can't say it for sure __Z80 is Zilog Z80 cpu architecture __Z180 is Zilog architecture too but not Intel I hope this helps. Let me know your opinion peter potrok ignackocom (Peter Potrok)<https://github.com/ignackocom> [https://avatars.githubusercontent.com/u/200398206?v=4?s=400]<https://github.com/ignackocom> ignackocom (Peter Potrok) - GitHub<https://github.com/ignackocom> software developer, economist. ignackocom has 8 repositories available. Follow their code on GitHub. github.com |
|
From: Alibek O. <a1b...@gm...> - 2024-06-20 14:57:34
|
Hello, Carsten! Thanks for mentioning Haiku and Illumos here. As this wiki has been moved to GitHub, I suggest you contributing your changes there: https://github.com/cpredef/predef/ If GitHub doesn't fit you, I can add a note for them myself, referencing this thread. |
|
From: Carsten J. <car...@we...> - 2024-06-18 23:06:17
|
"#ifdef __illumos__" is how to detect IllumOS operating system kernel, used by i.e. OmniOS or OpenIndiana. |
|
From: Carsten J. <car...@we...> - 2024-06-18 22:50:23
|
"#ifdef __HAIKU__" is how to check for Haiku (haiku-os.org) |
|
From: Alibek O. <a1b...@gm...> - 2024-05-23 13:11:31
|
Hello, Stefan! This wiki is now maintained at GitHub: https://github.com/cpredef/predef. Committed the change at https://github.com/cpredef/predef/commit/901cad5bd447cd6e509401d597897e0be0c070a9 Would've added C23 and C++23 as well, but it seems they are not accepted by the ISO yet. Not sure whether it's we should reference them. Best regards, Alibek. чт, 23 мая 2024 г. в 15:28, Felkel, Stefan via Predef-contribute < pre...@li...>: > Hi, > could you please add C++20 to the Language Standards: > > C++20 - Wikipedia <https://en.wikipedia.org/wiki/C%2B%2B20> > __cplusplus=202002L > ISO/IEC 14882:2020 > > https://www.iso.org/standard/79358.html > ISO/IEC 14882:2020 <https://www.iso.org/standard/79358.html> > Programming languages — C++ > www.iso.org > ** > Kind Regards, > Stefan Felkel > > Stefan Felkel | Software Architect > Zuken E3 GmbH - The Partner For Success > Lämmerweg 55 - 89079 Ulm - Germany > T: +49 73 059309811 | F: +49 7305 9309 99 | M: > E: ste...@de... | W: www.zuken.com > Connect with Zuken: blog <http://blog.zuken.com> | youtube > <http://www.youtube.com/zukentube> | linkedin > <http://www.zuken.com/linkedin> | twitter <http://www.zuken.com/twitter> > | facebook <http://www.zuken.com/facebook> > [image: Zuken Innovation World 2024] <https://event.zuken.com/ziwde24> > Zuken E3 Gesellschaft mit beschränkter Haftung • Sitz der Gesellschaft: > Ulm • Registergericht: Amtsgericht Ulm HBR 1866 • Geschäftsführer: Joachim > Frank, Dr. Benjamin Nixdorf, Sho Akimoto, Koichi Saotome > This e-mail message from Zuken including any attachments is intended only > for the individual or entity to which it is addressed. This e-mail may > contain privileged, proprietary, or otherwise private information. If you > are not the intended recipient of this e-mail, you are hereby notified that > any dissemination, distribution or copying of this communication is > strictly prohibited. If you received this e-mail by accident, please notify > the sender immediately and destroy this e-mail and all copies of it. > ======E-Mail-Signature-Zuken====== > _______________________________________________ > Predef-contribute mailing list > Pre...@li... > https://lists.sourceforge.net/lists/listinfo/predef-contribute > -- 1 |
|
From: Felkel, S. <ste...@de...> - 2024-05-21 11:47:43
|
Hi, could you please add C++20 to the Language Standards: C++20 - Wikipedia<https://en.wikipedia.org/wiki/C%2B%2B20> __cplusplus=202002L ISO/IEC 14882:2020 https://www.iso.org/standard/79358.html ISO/IEC 14882:2020<https://www.iso.org/standard/79358.html> Programming languages — C++ www.iso.org Kind Regards, Stefan Felkel Stefan Felkel | Software Architect Zuken E3 GmbH - The Partner For Success Lämmerweg 55 - 89079 Ulm - Germany T: +49 73 059309811 | F: +49 7305 9309 99 | M: E: ste...@de...<mailto:ste...@de...> | W: www.zuken.com<https://www.zuken.com/> Connect with Zuken: blog<http://blog.zuken.com> | youtube<http://www.youtube.com/zukentube> | linkedin<http://www.zuken.com/linkedin> | twitter<http://www.zuken.com/twitter> | facebook<http://www.zuken.com/facebook> [Zuken Innovation World 2024]<https://event.zuken.com/ziwde24> Zuken E3 Gesellschaft mit beschränkter Haftung • Sitz der Gesellschaft: Ulm • Registergericht: Amtsgericht Ulm HBR 1866 • Geschäftsführer: Joachim Frank, Dr. Benjamin Nixdorf, Sho Akimoto, Koichi Saotome This e-mail message from Zuken including any attachments is intended only for the individual or entity to which it is addressed. This e-mail may contain privileged, proprietary, or otherwise private information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you received this e-mail by accident, please notify the sender immediately and destroy this e-mail and all copies of it. ======E-Mail-Signature-Zuken====== |
|
From: Joris v. d. G. <jor...@gm...> - 2023-12-31 07:06:29
|
c23 has __STDC_VERSION__ as 202311L |
|
From: Alibek O. <a1b...@gm...> - 2023-12-30 16:16:19
|
If you don't want to contribute on GitHub (not everyone seems to like it), I think you can send patch here. I will review and apply it. Best regards, Alibek Omarov. |
|
From: Yuri M. <sp...@si...> - 2023-12-28 22:54:04
|
Hello Team, Please add ARM macros from the newer Visual Studio versions: _M_ARM Defined as the integer literal value 7 for compilations that target ARM processors. Undefined for ARM64, ARM64EC, and other targets. _M_ARM64 Defined as 1 for compilations that target ARM64. Otherwise, undefined. _M_ARM64EC Defined as 1 for compilations that target ARM64EC. Otherwise, undefined. https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170#microsoft-specific-predefined-macros -- Best regards, Yuri Matiashev |
|
From: Yuri M. <sp...@si...> - 2023-12-28 22:54:02
|
Please ignore. I did not notice you moved to Github :D Friday, December 29, 2023, 12:34:42 AM, you wrote: > Hello Team, > Please add ARM macros from the newer Visual Studio versions: > _M_ARM Defined as the integer literal value 7 for compilations that target ARM processors. Undefined for ARM64, ARM64EC, and other targets. > _M_ARM64 Defined as 1 for compilations that target ARM64. Otherwise, undefined. > _M_ARM64EC Defined as 1 for compilations that target ARM64EC. Otherwise, undefined. > https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170#microsoft-specific-predefined-macros -- Sincerely, Yuri Matiashev SimplyCore LLC Leading USB Redirection Solutions e-mail: pre...@li... www.simplycore.com www.incentivespro.com www.kernelpro.com |
|
From: xim <xi...@ds...> - 2023-10-13 04:20:13
|
Hi, My name is Ming Xi. The predef package from github is very helpful for cross-platform programming. I added the following to predef/README.md: 1. added DataModels.md to the index. 2. added a method to grab all pre-defined macros, and so user can handle new-platform easier. Please see the attachment. Yours sincerely, Ming Xi |
|
From: Alibek O. <a1b...@gm...> - 2023-08-24 03:52:00
|
>Sure, I can do that. Can you put up a redirect or notice on the old wiki so people like me know? Unfortunately, I don't have a write access here, better ask Bjorn, I added him on the CC. |
|
From: Alibek O. <a1b...@gm...> - 2023-08-24 02:50:55
|
Hi Dan, this wiki has moved to GitHub. Could you send a PR at https://github.com/cpredef/predef? Alibek |
|
From: Dan F. <da...@co...> - 2023-08-24 00:21:18
|
I've been playing with the Z88DK Z80 cross compiler environment recently and have a few new defines to contribute. Categorizing this compiler isn't completely straightforward. Z88DK (https://z88dk.org/) is a development kit that includes two cross-compilers (with linker, assembler, etc.) standard C library, tools for building images, and some drivers for over one hundred different Z80 computers. One compiler is based on Small-C/Plus and the other one based on SDCC. While there are defines for each of those >100 machines (and their variants), probably very few of them are interesting any longer so I've just included two of them, those that could be considered "operating systems" that ran on more than one specific machine (MSX and the granddaddy of Z80 OSes, CP/M). Compilers Macro Description Z88DK sccz80 __SCCZ80 Using sccz80 compiler Z88DK sccz80 SCCZ80 Using sccz80 compiler Z88DK sdcc __SDCC Using sdcc compiler Both seem to be set. They may not be Z88DK-specific, given they seem to be spelling "Small C Compiler - Z80". Operating Systems Macro Description CP/M __CPM Defined by Z88DK CP/M CPM Defined by Z88DK MSX __MSX Defined by Z88DK MSX MSX Defined by Z88DK Architectures Macro Description (These are similar enough that they could probably all be under a header "x80") 8080 __8080__ Defined by Z88DK 8085 __8085__ Defined by Z88DK; __8080__ is also defined Z80 __Z80 Defined by Z88DK Z180 __Z180 Defined by Z88DK Dan |
|
From: Alibek O. <a1b...@gm...> - 2023-01-11 05:34:57
|
The wiki has moved to GitHub at https://github.com/cpredef/predef I have created pull request https://github.com/cpredef/predef/pull/26 for this Thanks, Alibek. пт, 6 янв. 2023 г. в 15:32, Simon Sobisch <sim...@gn...>: > > I suggest to add these as follows: > > __ORANGEC__ always defined, value is "major version * 100 + minor version" > __ORANGEC_MAJOR__ always defined, value is "major version" > __ORANGEC_MINOR__ always defined, value is "minor version" > __ORANGEC_PATCHLEVEL__ always defined, value is "build number" > __VERSION__ always defined, rendition of the major/revision/minor/build > as a string > > Source: > https://github.com/LADSoft/OrangeC/blob/master/doc/occ/OCC%20Defining%20Macros.md#non-standard-predefined-macros > > > > _______________________________________________ > Predef-contribute mailing list > Pre...@li... > https://lists.sourceforge.net/lists/listinfo/predef-contribute -- 1 |
|
From: Simon S. <sim...@gn...> - 2023-01-05 20:04:21
|
I suggest to add these as follows: __ORANGEC__ always defined, value is "major version * 100 + minor version" __ORANGEC_MAJOR__ always defined, value is "major version" __ORANGEC_MINOR__ always defined, value is "minor version" __ORANGEC_PATCHLEVEL__ always defined, value is "build number" __VERSION__ always defined, rendition of the major/revision/minor/build as a string Source: https://github.com/LADSoft/OrangeC/blob/master/doc/occ/OCC%20Defining%20Macros.md#non-standard-predefined-macros |
|
From: Alibek O. <a1b...@gm...> - 2022-10-20 10:45:38
|
Hello! predef wiki has moved to https://github.com/cpredef/predef/ I moved this to GitHub issue: https://github.com/cpredef/predef/issues/23 Best regards, Alibek Omarov. чт, 20 окт. 2022 г. в 11:58, Davide Quagliotto <dav...@sp...>: > > 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) > Embarcadero C++Builder/RAD Studio XE7 (0x690) > Embarcadero C++Builder/RAD Studio XE8 (0x700) > Embarcadero C++Builder/RAD Studio 10 Seattle (0x710) > Embarcadero C++Builder/RAD Studio 10.1 Berlin (0x720) > Embarcadero C++Builder/RAD Studio 10.2 Tokyo (0x730) > Embarcadero C++Builder/RAD Studio 10.3 Rio (0x740) > Embarcadero C++Builder/RAD Studio 10.4 Sydney (0x750) > Embarcadero C++Builder/RAD Studio 11 Alexandria (0x760) > > Thanks. > Best Regards. > Davide Q. > > > > _______________________________________________ > Predef-contribute mailing list > Pre...@li... > https://lists.sourceforge.net/lists/listinfo/predef-contribute -- 1 |
|
From: Davide Q. <dav...@sp...> - 2022-10-19 12:38:30
|
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) Embarcadero C++Builder/RAD Studio XE7 (0x690) Embarcadero C++Builder/RAD Studio XE8 (0x700) Embarcadero C++Builder/RAD Studio 10 Seattle (0x710) Embarcadero C++Builder/RAD Studio 10.1 Berlin (0x720) Embarcadero C++Builder/RAD Studio 10.2 Tokyo (0x730) Embarcadero C++Builder/RAD Studio 10.3 Rio (0x740) Embarcadero C++Builder/RAD Studio 10.4 Sydney (0x750) Embarcadero C++Builder/RAD Studio 11 Alexandria (0x760) Thanks. Best Regards. Davide Q. |
|
From: Bjorn R. <br...@st...> - 2022-09-15 13:06:52
|
On 9/14/22 19:01, je...@ol... wrote: > https://sourceforge.net/p/predef/wiki/OperatingSystems/ That link works for me. That said, notice that the predef pages have been migrated to https://github.com/cpredef/predef/ There is a small blue box to indicated the migration on the SourceForge pages just below the headline. That box is unfortunately not very conspicuous, but that is the SourceForge notation. |
|
From: Daniel S. <da...@ha...> - 2022-09-15 13:06:13
|
On Wed, 14 Sep 2022, je...@ol... wrote: > Link to ... > appears to be broken in sept 9, 2022. Welcome to predef's new home, with slightly updated info: https://github.com/cpredef/predef -- / daniel.haxx.se |
|
From: <je...@ol...> - 2022-09-14 17:26:28
|
Good afternoon, Link to https://sourceforge.net/p/predef/wiki/OperatingSystems/ shown in https://sourceforge.net/p/predef/wiki/Home/ appears to be broken in sept 9, 2022. Thanks for for the attention and for uploading the info. Jesus Oliveira |
|
From: Ryan M. <mas...@gm...> - 2022-03-29 22:05:47
|
On https://sourceforge.net/p/predef/wiki/Standards the DSP-C link in the Language Standards table has the url www.dsl-c.org which redirects to a NSFW/porn site. It looked sketch enough I wouldn’t be surprised if it also has malware. -Ryan |
|
From: Ryan M. <mas...@gm...> - 2022-03-29 22:01:31
|
On https://sourceforge.net/p/predef/wiki/Standards the DSP-C link in the Language Standards table has the url www.dsl-c.org which redirects to a NSFW/porn site. It looked sketch enough I wouldn’t be surprised if it also has malware. -Ryan |