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

Use OS preprocessor definitions

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.0
    • Build
    • None
    • Minor Change

    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.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow
            andrew.morrow@mongodb.com Andrew Morrow
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: