[AD] Fix to __PRECALCULATE_CONSTANTS

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


Hi,

Here's a patch that fixes a bug in the ifdef around
`__PRECALCULATE_CONSTANTS()' in al386gcc.h. It should check if
`__GNUC_MINOR__ >= 95' rather than `> 95', or that optimization won't take
effect until the next version of gcc is released. (This was probably my
fault.)

Sven
--- allegro\include\allegro\al386gcc.h	Sun Jan 30 21:46:58 2000
+++ include\allegro\al386gcc.h	Tue Feb  8 17:50:28 2000
@@ -105,3 +105,3 @@
    the test then. */
-#if (defined __OPTIMIZE__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 95)))
+#if (defined __OPTIMIZE__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)))
    #define __PRECALCULATE_CONSTANTS(calc)                                  \






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