[bijiben] src: Use #ifdef instead of #if



commit c1d660bf94c1a7e30064e3f96c9bff016cb14c29
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Feb 24 21:20:04 2016 +0000

    src: Use #ifdef instead of #if
    
    ‘#if’ only works if the variable is defined in the preprocessor (to have
    value 0 or 1); ‘#ifdef’ works more conventionally.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762648

 src/libbiji/biji-manager.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libbiji/biji-manager.h b/src/libbiji/biji-manager.h
index cf61575..7681ca7 100644
--- a/src/libbiji/biji-manager.h
+++ b/src/libbiji/biji-manager.h
@@ -4,7 +4,7 @@
 #include <glib-object.h>
 #include <tracker-sparql.h>
 
-#if BUILD_ZEITGEIST
+#ifdef BUILD_ZEITGEIST
 #include <zeitgeist.h>
 #endif /* BUILD_ZEIGEIST */
 
@@ -91,7 +91,7 @@ void             biji_manager_import_uri            (BijiManager *manager,
 GList           *biji_manager_get_providers         (BijiManager *manager); /* <ProviderInfo*> */
 
 
-#if BUILD_ZEITGEIST
+#ifdef BUILD_ZEITGEIST
 ZeitgeistLog    *biji_manager_get_zg_log            (BijiManager *manager);
 #endif /* BUILD_ZEITGEIST */
 


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