You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Chun-Hung Hsiao (JIRA)" <ji...@apache.org> on 2017/05/09 17:09:04 UTC
[jira] [Created] (MESOS-7482) #elif does not match #ifdef when
checking the platform
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)