gnucash maint: Fix some bugs found by SWIG version 3.0.5. Prior to version 3.0.3 SWIG silently ignored invalid preprocessor directives. See <https://github.com/swig/swig/issues/217>
Mike Alexander
mta at code.gnucash.org
Mon Feb 23 18:54:53 EST 2015
Updated via https://github.com/Gnucash/gnucash/commit/e9972be9 (commit)
from https://github.com/Gnucash/gnucash/commit/207c0145 (commit)
commit e9972be93232f9d4a4a975c741db70ee4f1c63c6
Author: Mike Alexander <mta at umich.edu>
Date: Mon Feb 23 18:26:45 2015 -0500
Fix some bugs found by SWIG version 3.0.5.
Prior to version 3.0.3 SWIG silently ignored invalid preprocessor directives.
See <https://github.com/swig/swig/issues/217>
diff --git a/src/core-utils/core-utils.i b/src/core-utils/core-utils.i
index 77c05fb..ca200f4 100644
--- a/src/core-utils/core-utils.i
+++ b/src/core-utils/core-utils.i
@@ -77,6 +77,6 @@ const char * gnc_locale_default_iso_currency_code (void);
return gnc_utf8_validate(str, -1, 0);
}
%}
-#elsif defined(SWIGPYTHON)
+#elif defined(SWIGPYTHON)
gboolean gnc_utf8_validate(const gchar *, gssize, const gchar**);
#endif
diff --git a/src/engine/business-core.i b/src/engine/business-core.i
index f7331fd..5463461 100644
--- a/src/engine/business-core.i
+++ b/src/engine/business-core.i
@@ -166,7 +166,7 @@ static GncInvoiceList * qof_query_run_for_invoices(QofQuery *q) {
SET_ENUM("GNC-INVOICE-VEND-CREDIT-NOTE");
SET_ENUM("GNC-INVOICE-EMPL-CREDIT-NOTE");
-#undefine SET_ENUM
+#undef SET_ENUM
}
}
diff --git a/src/engine/engine.i b/src/engine/engine.i
index 49cfc23..99a1039 100644
--- a/src/engine/engine.i
+++ b/src/engine/engine.i
@@ -355,7 +355,7 @@ KvpValue * kvp_frame_get_slot_path_gslist (KvpFrame *frame, GSList *key_path);
SET_ENUM("GNC-HOW-RND-ROUND");
SET_ENUM("GNC-HOW-RND-NEVER");
-#undefine SET_ENUM
+#undef SET_ENUM
}
}
diff --git a/src/html/gnc-html.i b/src/html/gnc-html.i
index d29558d..3c02009 100644
--- a/src/html/gnc-html.i
+++ b/src/html/gnc-html.i
@@ -51,7 +51,7 @@ SCM scm_init_sw_gnc_html_module(void);
SET_ENUM("URL-TYPE-PRICE");
SET_ENUM("URL-TYPE-OTHER");
-#undefine SET_ENUM
+#undef SET_ENUM
}
}
Summary of changes:
src/core-utils/core-utils.i | 2 +-
src/engine/business-core.i | 2 +-
src/engine/engine.i | 2 +-
src/html/gnc-html.i | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
More information about the gnucash-changes
mailing list