Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7482

#elif does not match #ifdef when checking the platform.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reviewable
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When doing conditional compilation for different platforms, we mostly use #ifdef X ... #elif defined(Y) ... #endif. But there are some places in the codebase that uses #elif Y. Although in the current GCC checking either the existence or the value of a platform macro works, making the checks more consistent is more preferable.

      Attachments

        Activity

          People

            chhsia0 Chun-Hung Hsiao
            chhsia0 Chun-Hung Hsiao
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: