[easytag: 20/20] Fix redefinition warning from TagLib



commit a2d8e7a5c8cb4541666e7c3156ab1e87078ec015
Author: David King <amigadave amigadave com>
Date:   Fri Feb 6 17:45:09 2015 +0000

    Fix redefinition warning from TagLib
    
    https://github.com/taglib/taglib/commit/7d7a7be115976d31715b7d4051d50249f32d2a05

 src/tags/mp4_tag.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/tags/mp4_tag.cc b/src/tags/mp4_tag.cc
index 6b371bf..441e9b0 100644
--- a/src/tags/mp4_tag.cc
+++ b/src/tags/mp4_tag.cc
@@ -36,6 +36,9 @@
 /* Shadow warning in public TagLib headers. */
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wshadow"
+#ifdef G_OS_WIN32
+#undef NOMINMAX /* Warning in TagLib headers, fixed in git. */
+#endif /* G_OS_WIN32 */
 #include <mp4file.h>
 #include <mp4tag.h>
 #pragma GCC diagnostic pop


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]