Re: [AD] Problems using latest debug version

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


On 23 Nov 2000, Michael Bukin wrote:
> I guess this happens because these functions are defined as AL_INLINE
> in include/allegro/aintvga.h.  For optimized library these functions
> are inlined, but for debugging version they are treated as extern.
> Other functions, defined with AL_INLINE in "allegro.h" and
> "allegro/aintern.h" are also compiled into library as normal functions
> in src/inline.c, but these VGA/MODEX functions defined in
> include/allegro/aintvga.h are not included as normal functions.

Fine, thanks for the explanation. This patch fixes the problem, and
doesn't seem to affect anything else.

Index: inline.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/inline.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 inline.c
--- inline.c    2000/05/14 20:16:57     1.1.1.1
+++ inline.c    2000/11/23 20:51:46
@@ -21,6 +21,7 @@

 #include "allegro.h"
 #include "allegro/aintern.h"
+#include "allegro/aintvga.h"

 #ifdef ALLEGRO_INTERNAL_HEADER
    #include ALLEGRO_INTERNAL_HEADER

 Grzegorz Adam Hankiewicz   gradha@xxxxxxxxxx - http://gradha.infierno.org
 Other web pages:  http://glub.ehu.es/  -  http://welcome.to/gogosoftware/



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