Skip to content

Commit

Permalink
add extern "C" wrapper to header files
Browse files Browse the repository at this point in the history
to be usable from cpp
  • Loading branch information
christopherlam committed Mar 27, 2023
1 parent 77cb9c6 commit 75456bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gnucash/gnome-utils/dialog-account.h
Expand Up @@ -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.
Expand Down Expand Up @@ -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

/** @} */
/** @} */

Expand Down
8 changes: 8 additions & 0 deletions gnucash/gnome/window-reconcile.h
Expand Up @@ -27,6 +27,10 @@
#include "Account.h"
#include <gtk/gtk.h>

#ifdef __cplusplus
extern "C" {
#endif


/** STRUCTS *********************************************************/
typedef struct _RecnWindow RecnWindow;
Expand Down Expand Up @@ -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 */

0 comments on commit 75456bb

Please sign in to comment.