Re: [AD] a little suggestion for winalleg.h

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hmm, if i change winalleg.h to make it able to use windows' RGB as
WINDOWS_RGB
and also to make it able to use MFC would it be accepted?

the main problem is that MFC also have its own TRACE and ASSERT macros...


> Javier González <xaviergonz@xxxxxxxxxx> wrote:
>
> > since we have a
> > #define BITMAP WINDOWS_BITMAP
> >
> > why don't we add a
> > #define RGB WINDOWS_RGB to be able to use it as well?
>
> ---
>
gcc -DALLEGRO_SRC -Wall -Wno-unused -mpentium -O2 -funroll-loops -ffast-math
>   -fomit-frame-pointer -fno-strength-reduce -I. -I./include -o
> obj/mingw32/alleg/fsel.o -c src/fsel.c
> In file included from
> C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../..
> /../../include/windows.h:102,
>                  from ./include/winalleg.h:39,
>                  from src/fsel.c:41:
>
C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../../../../include/win
> gdi.h:2342: warning: `RGB' redefined
> ./include/winalleg.h:34: warning: this is the location of the previous
> definition
> ---
>
> that's why! :-)
>
> -henrik
>
>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/