Actions
Feature #13726
opendistinguish ourselves with a macro
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
As we try to get upstream patches into more and more software, it would help a lot to have a globally visible macro that identifies us as being illumos rather than conflating us with Solaris or any of our other UNIX heritage. While I appreciate that feature detection is always better, effectively every other operating system has a macro that people can use for simple #ifdef
checks and our lack of one merely creates friction that need not exist.
I would propose that we define __illumos__
to be 1
.
Updated by Andy Fiddaman about 2 years ago
I have added a commit to the new proposed illumos gcc 10.3 PR that defines this macro in the compiler:
Updated by Joshua M. Clulow 10 months ago
Updated by Joshua M. Clulow 10 months ago
Actions