Project

General

Profile

Actions

Feature #13726

open

distinguish ourselves with a macro

Added by Joshua M. Clulow about 2 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Category:
lib - userland libraries
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.

Actions #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:

https://github.com/illumos/gcc/pull/44

Actions #2

Updated by Electric Monk 10 months ago

  • Gerrit CR set to 2283
Actions #4

Updated by Joshua M. Clulow 10 months ago

  • Assignee set to Joshua M. Clulow
Actions

Also available in: Atom PDF