summaryrefslogtreecommitdiff
path: root/src/libFLAC/include
diff options
context:
space:
mode:
authorUlrich Klauer <ulrich@chirlu.de>2013-05-25 15:12:33 +0200
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-05-26 08:26:45 +1000
commitd672efaa05e18ca2bf906c6e8eb8d5bf20f88664 (patch)
tree7650ad9e8163ebd0ca23464614d4b3295c41c78e /src/libFLAC/include
parent411ba53c7bc86d2fe1407b3392d8d391f89c1d92 (diff)
downloadflac-d672efaa05e18ca2bf906c6e8eb8d5bf20f88664.tar.gz
Fix gcc version check for private macros
Use Benjamin Stiglitz' MIN macros from gcc 4.3 (according to the changelog, __COUNTER__ was introduced in this version). Previously, the macros weren't used on any existing gcc version; the first one would have been 5.5. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'src/libFLAC/include')
-rw-r--r--src/libFLAC/include/private/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libFLAC/include/private/macros.h b/src/libFLAC/include/private/macros.h
index 162bcafe..8282ca2c 100644
--- a/src/libFLAC/include/private/macros.h
+++ b/src/libFLAC/include/private/macros.h
@@ -32,7 +32,7 @@
#ifndef FLAC__PRIVATE__MACROS_H
#define FLAC__PRIVATE__MACROS_H
-#if defined(__GNUC__) && (__GNUC__ > 4) && (__GNUC_MINOR__ > 4)
+#if defined(__GNUC__) && (__GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 3))
#define flac_max(a,b) \
({ __typeof__ (a) _a = (a); \