Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17552

Use OS preprocessor definitions

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Minor Change

      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.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: