<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>CodeWarrior for MCUのトピックRe: Use of stdbool.h in Code Warrior for DSC (revisted)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-stdbool-h-in-Code-Warrior-for-DSC-revisted/m-p/777830#M14620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We will check this problem but we need more information:&lt;/P&gt;&lt;P&gt;1. your CW version&lt;/P&gt;&lt;P&gt;2. demo code to reproduce the problem.&lt;/P&gt;&lt;P&gt;3. problem screenshot.&lt;/P&gt;&lt;P&gt;Thanks for cooperation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2018 06:26:03 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2018-05-07T06:26:03Z</dc:date>
    <item>
      <title>Use of stdbool.h in Code Warrior for DSC (revisted)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-stdbool-h-in-Code-Warrior-for-DSC-revisted/m-p/777829#M14619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a previous post titled: "Use of stdbool.h in Code Warrior for DSC" at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/379671"&gt;Use of stdbool.h in Code Warrior for DSC&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It ended by recommending that the user add the flag "-flag slld".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the same problem with bool undefined. Adding "-flag slld" does fix the problem. BUT, it also implements support for 64-bit data type (long long) which I do not need. Unless this is by-product of C99. Because, the bool data type is part of the C99 specification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that stdbool.h includes "#include &amp;lt;ansi_parms.h&amp;gt;". ansi_parms.h has the following #defines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef _MSL_HIWARE_COMP&amp;nbsp;&amp;nbsp; /* LINE 107 */&lt;/P&gt;&lt;P&gt;#define _MSL_HIWARE_COMP&amp;nbsp;&amp;nbsp; &amp;nbsp;0&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef _MSL_C99&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LINE 151 */&lt;BR /&gt;#define _MSL_C99 1&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when stdbool.h gets to line 17, it has the conditional:&lt;/P&gt;&lt;P&gt;#if (!_MSL_C99 &amp;amp;&amp;amp; !_MSL_HIWARE_COMP)&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; /*- mm 030304 -*/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;#warning "MSL support for C99 is not enabled"&lt;BR /&gt;#else&lt;/P&gt;&lt;P&gt;So, _MSL_C99 is true but _MSL_HIWARE_COMP is false. This seems to cause C99 support to be disabled. So, why do I need to enable slld, long long support to fix this. Is that because long long support is intrinsically part of the C99 specification? I am working with limited flash and do not need long long support or any additional flash space that this might use. Also, where does adding -flag slld set the _MSL_HIWARE_COMP defintion to 1? Grepping the whole directory of&lt;/P&gt;&lt;P&gt;"C:\Freescale\CW MCU v10.7\MCU\M56800E Support\" the only definition for _MSL_HIWARE_COMP is line 107 in ansi_parms.h. So, how does -flag slld accomplish this? And, how can I get C99 support WITHOUT "long long" support?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 19:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-stdbool-h-in-Code-Warrior-for-DSC-revisted/m-p/777829#M14619</guid>
      <dc:creator>elvismemphis</dc:creator>
      <dc:date>2018-04-27T19:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use of stdbool.h in Code Warrior for DSC (revisted)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-stdbool-h-in-Code-Warrior-for-DSC-revisted/m-p/777830#M14620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We will check this problem but we need more information:&lt;/P&gt;&lt;P&gt;1. your CW version&lt;/P&gt;&lt;P&gt;2. demo code to reproduce the problem.&lt;/P&gt;&lt;P&gt;3. problem screenshot.&lt;/P&gt;&lt;P&gt;Thanks for cooperation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 06:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Use-of-stdbool-h-in-Code-Warrior-for-DSC-revisted/m-p/777830#M14620</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-05-07T06:26:03Z</dc:date>
    </item>
  </channel>
</rss>

