Project

General

Profile

Actions

Feature #13726

open

distinguish ourselves with a macro

Added by Joshua M. Clulow 8 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

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 7 months 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

Also available in: Atom PDF