<div dir="ltr">[sorry for late response]<div>Yea... I think we should simply change bool to int in the headers.</div><div>Let me see if this is going to break something... </div><div>Meanwhile, i'd expect that your hack is going to work fine. </div>
<div><br></div><div>--kcc </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 8, 2014 at 5:20 PM, Oliver Schneider <span dir="ltr"><<a href="mailto:oliver@f-prot.com" target="_blank">oliver@f-prot.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to make use of the ASAN callbacks from C. However,<br>
asan_interface.h uses bool in the public interface. This type has "only"<br>
been introduced in C99. Unfortunately for me this means I have it not<br>
available.<br>
<br>
Is it sufficient to do something like:<br>
<br>
#   if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)<br>
    typedef unsigned char bool;<br>
#   endif<br>
#   include<sanitizer/asan_interface.h><br>
<br>
or would this break anything? If it breaks something, what alternatives<br>
do I have if I cannot use C99 mode?<br>
<br>
Thanks,<br>
<br>
// Oliver<br>
<br>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>