Whoops, logic was reversed.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 7 Mar 2007 23:13:03 +0000 (00:13 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 7 Mar 2007 23:13:03 +0000 (00:13 +0100)
src/help.c
src/help.h

index 3ed543616307966f1c0de5219f2856b8427551b2..9d2a1478288b170d40740396b725f5c1fc88492b 100644 (file)
@@ -28,7 +28,7 @@
 
 void help_free(help_t *h)
 {
 
 void help_free(help_t *h)
 {
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 8
        g_mapped_file_free(h->file);
 #else
        g_free(h->file);
        g_mapped_file_free(h->file);
 #else
        g_free(h->file);
@@ -79,7 +79,7 @@ help_t *help_load_file( const char *helpfile )
        
        h = g_new0 (help_t, 1);
        
        
        h = g_new0 (help_t, 1);
        
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 8
        h->file = g_mapped_file_new(helpfile, TRUE, &error);
        if (h->file != NULL) {
                len = g_mapped_file_get_length(h->file);
        h->file = g_mapped_file_new(helpfile, TRUE, &error);
        if (h->file != NULL) {
                len = g_mapped_file_get_length(h->file);
index cb4af51cc5450b936101f3dab3793c49bdb3abb2..8838c20ee6b3acacca4f52c5d89a788653b7f5a2 100644 (file)
@@ -28,7 +28,7 @@
 
 typedef struct help
 {
 
 typedef struct help
 {
-#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 8
+#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 8
        GMappedFile *file;
 #else
        char *file;
        GMappedFile *file;
 #else
        char *file;