<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>And #include <stdbool.h> doesn't work?</div><div><br></div><div>Most pre-C99 environments had that header. <br><br>-Fil</div><div><br>On Apr 10, 2014, at 10:37 PM, Kostya Serebryany <<a href="mailto:kcc@google.com">kcc@google.com</a>> wrote:<br><br></div><blockquote type="cite"><div><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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cfe-dev mailing list</span><br><span><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a></span><br><span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></span><br></div></blockquote></body></html>