Use OS preprocessor definitions

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Andrew Morrow (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: