[easytag] Add ifdefs around private FLAC code



commit 01563bb62de675d49d6810f659939057de9b627b
Author: David King <amigadave amigadave com>
Date:   Wed Feb 18 22:54:09 2015 +0000

    Add ifdefs around private FLAC code
    
    Fix compilation when FLAC support is not enabled.
    
    https://mail.gnome.org/archives/easytag-list/2015-February/msg00004.html

 src/tags/flac_private.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tags/flac_private.c b/src/tags/flac_private.c
index bdda107..8c7175d 100644
--- a/src/tags/flac_private.c
+++ b/src/tags/flac_private.c
@@ -18,6 +18,8 @@
 
 #include "flac_private.h"
 
+#ifdef ENABLE_FLAC
+
 #include <errno.h>
 #include <unistd.h>
 
@@ -178,3 +180,5 @@ et_flac_write_close_func (FLAC__IOHandle handle)
     /* Always return success. */
     return 0;
 }
+
+#endif /* ENABLE_FLAC */


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