Re: [AD] official beta (Re namespace again)

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


In reply to Sven Sandberg <svsa1977@xxxxxxxxxx>:
>[allegro.h]
>   #define key al_key
>
>but this macro breaks code like:
>
>[myheader.h]
>   typedef struct{
>      int key;
>   }FOO;
>
>[mycode.c]
>   #include "myhead.h"
>   #include <allegro.h>
>   FOO x;
>   x.key=0;

Yes, you are correct. This is one of the very few instances where there
is nothing we can do but ask users to change their code (in this case,
move the inclusion of `allegro.h' to below the definition of `FOO').

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



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