[SERVER-17552] Use OS preprocessor definitions Created: 11/Mar/15  Updated: 18/Sep/15  Resolved: 11/Mar/15

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.1.0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Participants:

 Description   

We currently define our own _sunos, __freebsd, and __openbsd_ defines when building on Solaris, FreeBSD, and OpenBSD, respectively.

This is unnecessary, as there are already well defined preprocessor definitions for those platforms:

http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#Solaris

We should standardize on the standard ones.



 Comments   
Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-17552 Use correct OS detection macros, rather than our own
Branch: master
https://github.com/mongodb/mongo/commit/17a7f0eedd286a19a5027c02efc358b39ccc8d84

Generated at Thu Feb 08 03:44:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.