Skip to content

Predefined C preprocessor macro for operating system detection #72

@user1911431

Description

@user1911431

Does Bitrig define a preprocessor macro to help detect the operating system in C or C++ source files? I am writing cross-platform C library and I would like to be able to detect if my code is being compiled on Bitrig. I couldn't find any documentation for this online unfortunately.

I have been using the following resource for figuring out how to detect operating systems: https://sourceforge.net/p/predef/wiki/OperatingSystems/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions