Skip to content

Commit

Permalink
Add #ifdef __cplusplus extern "C" {} wrappers to .h files
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Feb 8, 2024
1 parent ef09408 commit 698cc23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libgnucash/engine/cap-gains.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@

#include "gnc-engine.h"

#ifdef __cplusplus
extern "C" {
#endif

/** The xaccSplitGetCapGains() method returns the value of
* capital gains (if any) associated with the indicated
* split. In order for there to be any capital gains,
Expand Down Expand Up @@ -205,6 +209,10 @@ Split * xaccSplitAssignToLot (Split *split, GNCLot *lot);
void xaccSplitComputeCapGains(Split *split, Account *gain_acc);
void xaccLotComputeCapGains (GNCLot *lot, Account *gain_acc);

#ifdef __cplusplus
}
#endif

#endif /* XACC_CAP_GAINS_H */
/** @} */
/** @} */
Expand Down
8 changes: 8 additions & 0 deletions libgnucash/engine/gnc-lot-p.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@
#ifndef GNC_LOT_P_H
#define GNC_LOT_P_H

#ifdef __cplusplus
extern "C" {
#endif

#define gnc_lot_set_guid(L,G) qof_instance_set_guid(QOF_INSTANCE(L),&(G))

/* Register with the Query engine */
gboolean gnc_lot_register (void);

#ifdef __cplusplus
}
#endif

#endif /* GNC_LOT_P_H */

0 comments on commit 698cc23

Please sign in to comment.