changeset 28336:1a5cd79b2e6e

HAVE_LRINTF is now always defined to either 0 or 1, not defined/undefined.
author diego
date Mon, 26 Jan 2009 09:40:04 +0000
parents 31287e75b5d8
children 34b7297904ac
files libfaad2/common.h libfaad2/local_changes.diff
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libfaad2/common.h	Mon Jan 26 09:29:53 2009 +0000
+++ b/libfaad2/common.h	Mon Jan 26 09:40:04 2009 +0000
@@ -305,7 +305,7 @@
   }
 
 
-  #if defined(_WIN32) && !defined(__MINGW32__) && !defined(HAVE_LRINTF)
+  #if defined(_WIN32) && !defined(__MINGW32__) && !HAVE_LRINTF
     #define HAS_LRINTF
     static INLINE int lrintf(float f)
     {
@@ -317,7 +317,7 @@
         }
         return i;
     }
-  #elif (defined(__i386__) && defined(__GNUC__)) && !defined(HAVE_LRINTF)
+  #elif (defined(__i386__) && defined(__GNUC__)) && !HAVE_LRINTF
     #define HAS_LRINTF
     // from http://www.stereopsis.com/FPU.html
     static INLINE int lrintf(float f)
@@ -348,7 +348,7 @@
 
 #include <math.h>
 
-#ifdef HAVE_LRINTF
+#if HAVE_LRINTF
 #  define HAS_LRINTF
 #  define _ISOC9X_SOURCE 1
 #  define _ISOC99_SOURCE 1
--- a/libfaad2/local_changes.diff	Mon Jan 26 09:29:53 2009 +0000
+++ b/libfaad2/local_changes.diff	Mon Jan 26 09:40:04 2009 +0000
@@ -89,7 +89,7 @@
  
  
 -  #if defined(_WIN32) && !defined(__MINGW32__)
-+  #if defined(_WIN32) && !defined(__MINGW32__) && !defined(HAVE_LRINTF)
++  #if defined(_WIN32) && !defined(__MINGW32__) && !HAVE_LRINTF
      #define HAS_LRINTF
      static INLINE int lrintf(float f)
      {
@@ -98,17 +98,18 @@
          return i;
      }
 -  #elif (defined(__i386__) && defined(__GNUC__))
-+  #elif (defined(__i386__) && defined(__GNUC__)) && !defined(HAVE_LRINTF)
++  #elif (defined(__i386__) && defined(__GNUC__)) && !HAVE_LRINTF
      #define HAS_LRINTF
      // from http://www.stereopsis.com/FPU.html
      static INLINE int lrintf(float f)
-@@ -330,6 +360,8 @@
+@@ -330,7 +360,7 @@
  
    #else
  
 +#include <math.h>
 +
- #ifdef HAVE_LRINTF
+-#ifdef HAVE_LRINTF
+-#if HAVE_LRINTF
  #  define HAS_LRINTF
  #  define _ISOC9X_SOURCE 1
 @@ -338,8 +370,6 @@