Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefined C preprocessor macro for operating system detection #72

Closed
user1911431 opened this issue Jun 10, 2016 · 3 comments
Closed

Predefined C preprocessor macro for operating system detection #72

user1911431 opened this issue Jun 10, 2016 · 3 comments

Comments

Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
@user1911431
Copy link

@user1911431 user1911431 commented Jun 10, 2016

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/

@marcopeereboom
Copy link
Contributor

@marcopeereboom marcopeereboom commented Jun 10, 2016

Bitrig

On Jun 10, 2016, at 5:22 AM, user1911431 notifications@github.com wrote:

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/


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@user1911431
Copy link
Author

@user1911431 user1911431 commented Jun 10, 2016

Thanks, I will try to get this preprocessor compiler macro for Bitrig added to that list (I sent the mailing list an e-mail).

@preetpalS
Copy link

@preetpalS preetpalS commented Mar 28, 2017

__Bitrig__ appears to have become Bitrig due to markdown styling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment