changeset 32305:667186dcadbf

Fix condition for compiling lrintf, fixes compilation on cygwin/MinGW.
author reimar
date Mon, 27 Sep 2010 18:37:43 +0000
parents 50f2498749da
children 5984fef34b14
files libfaad2/common.h libfaad2/local_changes.diff
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libfaad2/common.h	Mon Sep 27 17:28:23 2010 +0000
+++ b/libfaad2/common.h	Mon Sep 27 18:37:43 2010 +0000
@@ -317,7 +317,7 @@
         }
         return i;
     }
-  #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ >= 199901L
+  #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ < 199901L
     #define HAS_LRINTF
     // from http://www.stereopsis.com/FPU.html
     static INLINE int lrintf(float f)
--- a/libfaad2/local_changes.diff	Mon Sep 27 17:28:23 2010 +0000
+++ b/libfaad2/local_changes.diff	Mon Sep 27 18:37:43 2010 +0000
@@ -77,7 +77,7 @@
          return i;
      }
 -  #elif (defined(__i386__) && defined(__GNUC__))
-+  #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ >= 199901L
++  #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ < 199901L
      #define HAS_LRINTF
      // from http://www.stereopsis.com/FPU.html
      static INLINE int lrintf(float f)