gnucash master: Fix a pair of missed extern "C" decls.

John Ralls jralls at code.gnucash.org
Thu Jan 26 15:45:28 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/f8465dad (commit)
	from  https://github.com/Gnucash/gnucash/commit/17820ec2 (commit)



commit f8465dadf42d21ee443ea908a3e531e05b593662
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Jan 26 12:43:52 2023 -0800

    Fix a pair of missed extern "C" decls.

diff --git a/borrowed/libc/strptime.h b/borrowed/libc/strptime.h
index 52f8807a6..4c7ee2f0b 100644
--- a/borrowed/libc/strptime.h
+++ b/borrowed/libc/strptime.h
@@ -25,6 +25,10 @@
 #ifndef __STRPTIME_H__
 #define __STRPTIME_H__
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /*
  * Version of "strptime()", for the benefit of OSes that don't have it.
  */
@@ -34,5 +38,7 @@ extern char *strptime(const char *, const char *, struct tm *);
 extern char *get_win32_locale_string(int lctype);
 extern char *translate_win32_picture(const char *);
 #endif
-
+#ifdef __cplusplus
+}
+#endif
 #endif
diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp
index bae896aba..c86af73dc 100644
--- a/gnucash/gnome/assistant-stock-transaction.cpp
+++ b/gnucash/gnome/assistant-stock-transaction.cpp
@@ -44,10 +44,13 @@
 
 static QofLogModule log_module = GNC_MOD_ASSISTANT;
 
+extern "C"
+{
 void stock_assistant_prepare (GtkAssistant  *assistant, GtkWidget *page,
                               gpointer user_data);
 void stock_assistant_finish  (GtkAssistant *assistant, gpointer user_data);
 void stock_assistant_cancel  (GtkAssistant *gtkassistant, gpointer user_data);
+}
 
 enum class FieldMask : unsigned;
 bool operator &(FieldMask lhs, FieldMask rhs);



Summary of changes:
 borrowed/libc/strptime.h                      | 8 +++++++-
 gnucash/gnome/assistant-stock-transaction.cpp | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list