add extern "C" wrapper to header files

to be usable from cpp
This commit is contained in:
Christopher Lam 2023-03-27 14:18:02 +08:00
parent 77cb9c6af4
commit 75456bbb29
2 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,10 @@
#include "Account.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Note: make sure to update the help text for this in prefs.scm if these
* change! These macros define the account types for which an auto interest
* xfer dialog could pop up, if the user's preferences allow it.
@ -180,6 +184,10 @@ void gnc_account_renumber_create_dialog (GtkWidget *window, Account *account);
void gnc_account_cascade_properties_dialog (GtkWidget *window, Account *account);
#ifdef __cplusplus
}
#endif
/** @} */
/** @} */

View File

@ -27,6 +27,10 @@
#include "Account.h"
#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {
#endif
/** STRUCTS *********************************************************/
typedef struct _RecnWindow RecnWindow;
@ -66,4 +70,8 @@ void gnc_ui_reconcile_window_raise (RecnWindow * recnData);
GtkWindow *gnc_ui_reconcile_window_get_window (RecnWindow * recnData);
#ifdef __cplusplus
}
#endif
#endif /* WINDOW_RECONCILE_H */