# HG changeset patch # User diego # Date 1285576533 0 # Node ID 2f7330d56aba84d7bb997738c263879a78be89a0 # Parent a99c12cf3baa67ab31382f188126d0919c22e1b6 Check for __STDC_VERSION__ >= 199901L before declaring lrintf(). This is the correct condition according to the standard. diff -r a99c12cf3baa -r 2f7330d56aba libfaad2/common.h --- a/libfaad2/common.h Mon Sep 27 08:33:20 2010 +0000 +++ b/libfaad2/common.h Mon Sep 27 08:35:33 2010 +0000 @@ -317,7 +317,7 @@ } return i; } - #elif (defined(__i386__) && defined(__GNUC__)) && !defined(__STDC_VERSION__) + #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ >= 199901L #define HAS_LRINTF // from http://www.stereopsis.com/FPU.html static INLINE int lrintf(float f) diff -r a99c12cf3baa -r 2f7330d56aba libfaad2/local_changes.diff --- a/libfaad2/local_changes.diff Mon Sep 27 08:33:20 2010 +0000 +++ b/libfaad2/local_changes.diff Mon Sep 27 08:35:33 2010 +0000 @@ -77,7 +77,7 @@ return i; } - #elif (defined(__i386__) && defined(__GNUC__)) -+ #elif (defined(__i386__) && defined(__GNUC__)) && !defined(__STDC_VERSION__) ++ #elif (defined(__i386__) && defined(__GNUC__)) && __STDC_VERSION__ >= 199901L #define HAS_LRINTF // from http://www.stereopsis.com/FPU.html static INLINE int lrintf(float f)