Re: [AD] make depend problem (again)

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


On Wed, Apr 18, 2001 at 07:09:54PM +0200, Henrik Stokseth wrote:
> hmm... perhaps you should also edit include/allegro/alconfig.h and switch:
> #elif defined __MINGW32__
>    #include "almngw32.h"
> with:
> #elif defined _MSC_VER
>    #include "almsvc.h"
> 
> IIRC both make and mingw32 gcc defines __MINGW32__ internal, so that the
> wrong include files are used when you're mixing mingw and msvc tools. a
> quick hack would be to replace #elif defined __MINGW32__ with #elif (defined
> __MINGW32__) && (!defined _MSC_VER). happy hacking!

I've always wondered why we don't just make the top-level
makefile (i.e. the one created by the fixup script) define the
corrent ALLEGRO_* variable for the platform, and then use this
instead of things which compilers do automatically.  Surely it
would make things simpler -- it certainly feels neater than
trying to undefine various compiler-defined macros.

George

-- 
Random project update:
22/06/2000: AllegroGL documentation:  http://allegrogl.sourceforge.net/
        See under `Documentation' for the AllegroGL Reference Manual in
        various formats.



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