[AD] missing exports fix.

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


the win32 builds of allegro does now build even when ALLEGRO_MMX not defined.

changes are already in cvs. but here's a patch anyway...
-- 
Sincerely Henrik Stokseth.
----------------------------------------------------------------------------
"Linux is keyboard friendly. I don't smash it like I used to with Windows."
Homepage: http://hstokset.n3.net  E-mail: hstokset@xxxxxxxxxx
--- allegro/src/i386/iscan.s	Mon Oct  9 15:06:53 2000
+++ iscan.s	Sun Dec 31 17:38:58 2000
@@ -72,6 +72,49 @@
 #define PI2FD_R(src, dst)           OP3D(src, dst, 0x0d)
 #define PMULHRW_R(src, dst)         OP3D(src, dst, 0xb7)
 
+/* This is a workaround for cases when ALLEGRO_MMX is not defined and
+ * functions are left out which can cause the Mingw32 dllwrap tool to
+ * complain about missing exports. We add some dummy functions to
+ * deal with this for the moment.
+ */
+
+#ifndef ALLEGRO_MMX
+   FUNC(_poly_scanline_atex_lit15x)
+   FUNC(_poly_scanline_atex_lit16x)
+   FUNC(_poly_scanline_atex_lit24x)
+   FUNC(_poly_scanline_atex_lit32x)
+
+   FUNC(_poly_scanline_atex_mask_lit15x)
+   FUNC(_poly_scanline_atex_mask_lit16x)
+   FUNC(_poly_scanline_atex_mask_lit24x)
+   FUNC(_poly_scanline_atex_mask_lit32x)
+
+   FUNC(_poly_scanline_ptex_lit15d)
+   FUNC(_poly_scanline_ptex_lit15x)
+   FUNC(_poly_scanline_ptex_lit16d)
+   FUNC(_poly_scanline_ptex_lit16x)
+   FUNC(_poly_scanline_ptex_lit24d)
+   FUNC(_poly_scanline_ptex_lit24x)
+   FUNC(_poly_scanline_ptex_lit32d)
+   FUNC(_poly_scanline_ptex_lit32x)
+
+   FUNC(_poly_scanline_grgb8x)
+   FUNC(_poly_scanline_grgb15x)
+   FUNC(_poly_scanline_grgb16x)
+   FUNC(_poly_scanline_grgb24x)
+   FUNC(_poly_scanline_grgb32x)
+
+   FUNC(_poly_scanline_ptex_mask_lit15d)
+   FUNC(_poly_scanline_ptex_mask_lit15x)
+   FUNC(_poly_scanline_ptex_mask_lit16d)
+   FUNC(_poly_scanline_ptex_mask_lit16x)
+   FUNC(_poly_scanline_ptex_mask_lit24d)
+   FUNC(_poly_scanline_ptex_mask_lit24x)
+   FUNC(_poly_scanline_ptex_mask_lit32d)
+   FUNC(_poly_scanline_ptex_mask_lit32x)
+
+   ret /* return if dummy function is called by an idiot */
+#endif
 
 
 #ifdef ALLEGRO_COLOR8


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