[AD] fceil not defined, could not link debugmode dll

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


in    DEBUGMODE=1

Mingw32 could not link poly3d.c,   complaining about  int fceil(fixed x)
so I examined and found that it is undocumented and is not used anywhere except
in poly3d.c   ...    it seems   "extern inline"  makes it invisible or whatever ...
using just "inline"  is ok.   so I removed AL_INLINE macro and defined it the old way.
now it works in DEBUGMODE ...   can somebody confirm the problem with
linking mingw32 .dll debug version ?   

if confirmed,  somebody should apply it to the CVS


--- \libs\cvs\allegro\src\poly3d.c	Mon Oct  9 15:06:54 2000
+++ src/poly3d.c	Mon Oct 23 03:04:48 2000
@@ -52,7 +52,8 @@
  */
 #if (defined ALLEGRO_GCC) && (defined ALLEGRO_I386)
 
-AL_INLINE(int, fceil, (fixed x),
+inline int fceil(fixed x) 
 {
    int result;
 
@@ -82,8 +83,8 @@
    );
 
    return result;
-})
+}



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