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

Use OS preprocessor definitions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      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

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: