[Scummvm-devel] remove macro conflict in system headers

Willem Jan Palenstijn wjp at usecode.org
Thu Oct 31 13:55:41 CET 2013


On Thu, Oct 31, 2013 at 12:35:28AM +0400, Икар wrote:
> 
> 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 :
> virtual void remove()=0
> and his virtual inheritance comes from macro definition
> #define remove(x) unlink(x)
> This define placed in sys/unistd.h
> 
>  I try to  use '#undef remove' in core.h but it doesn't work.

What do you mean by "doesn't work"?

We use remove() in more places than just core.h, so I'm not sure what you
tried or how it doesn't work...


-Willem Jan




More information about the Scummvm-devel mailing list