<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 31, 2013 at 1:55 PM, Willem Jan Palenstijn <span dir="ltr"><<a href="mailto:wjp@usecode.org" target="_blank">wjp@usecode.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Thu, Oct 31, 2013 at 12:35:28AM +0400, Икар wrote:<br>
><br>
> When I building Tsage engine for symbian with GCCE 4.4.1 I got many erros "macro `remove' used without args" because compilers think what function :<br>
> virtual void remove()=0<br>
> and his virtual inheritance comes from macro definition<br>
> #define remove(x) unlink(x)<br>
> This define placed in sys/unistd.h<br>
><br>
>  I try to  use '#undef remove' in core.h but it doesn't work.<br>
<br>
</div>What do you mean by "doesn't work"?<br>
<br>
We use remove() in more places than just core.h, so I'm not sure what you<br>
tried or how it doesn't work...<br></blockquote></div><br></div><div class="gmail_extra">I think he talks about <a href="https://github.com/scummvm/scummvm/commit08cd61acc249f93c2760fc45b45705c8836fbc7b">https://github.com/scummvm/scummvm/commit08cd61acc249f93c2760fc45b45705c8836fbc7b</a> which was reverted later. One possibly issue here could've been that you undefine such macros by simple "#undef remove" instead of "#undef remove(x)". Other issues might include core.h wasn't included in the offending files, core.h was included first and then #undef remove was before the actual #define.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">// Johannes<br></div><div class="gmail_extra"><br><br><br><br></div></div>