[easytag] Surround Browser_Win32_Get_Drive_Root with ifdef



commit b662e933833cb53c477a6258e442f3b856e95a26
Author: Andreas Winkelmann <ml awinkelmann de>
Date:   Sat Jan 12 07:36:09 2013 +0000

    Surround Browser_Win32_Get_Drive_Root with ifdef
    
    Only enable the win32-specific function if G_OS_WIN32 is defined.

 src/browser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index ef967af..52d4835 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -187,9 +187,11 @@ void        Browser_Load_Home_Directory    (void);
 void        Browser_Load_Default_Directory (void);
 void        Browser_Reload_Directory       (void);
 
+#ifdef G_OS_WIN32
 static gboolean Browser_Win32_Get_Drive_Root (gchar *drive,
                                               GtkTreeIter *rootNode,
                                               GtkTreePath **rootPath);
+#endif /* G_OS_WIN32 */
 
 static gboolean check_for_subdir   (gchar *path);
 
@@ -855,6 +857,7 @@ Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_data)
 }
 
 
+#ifdef G_OS_WIN32
 static gboolean
 Browser_Win32_Get_Drive_Root (gchar *drive, GtkTreeIter *rootNode, GtkTreePath **rootPath)
 {
@@ -888,6 +891,7 @@ Browser_Win32_Get_Drive_Root (gchar *drive, GtkTreeIter *rootNode, GtkTreePath *
 
     return TRUE;
 }
+#endif /* G_OS_WIN32 */
 
 
 /*



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