mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun-Hung Hsiao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-7482) #elif does not match #ifdef when checking the platform
Date Tue, 09 May 2017 17:09:04 GMT
Chun-Hung Hsiao created MESOS-7482:
--------------------------------------

             Summary: #elif does not match #ifdef when checking the platform
                 Key: MESOS-7482
                 URL: https://issues.apache.org/jira/browse/MESOS-7482
             Project: Mesos
          Issue Type: Bug
            Reporter: Chun-Hung Hsiao
            Assignee: Chun-Hung Hsiao
            Priority: Trivial
             Fix For: 1.3.0


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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message