Skip to content

Commit

Permalink
ifdef cplusplus in cholmod.h
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Oct 22, 2023
1 parent 189bc4d commit 0bb9a01
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHOLMOD/Config/cholmod.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
CHOLMOD_VER_CODE(CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION)
#define CHOLMOD_HAS_VERSION_FUNCTION

#ifdef __cplusplus
extern "C" {
#endif

int cholmod_version // returns CHOLMOD_VERSION, defined above
(
// if version is not NULL, then cholmod_version returns its contents as:
Expand All @@ -112,6 +116,10 @@ int cholmod_version // returns CHOLMOD_VERSION, defined above
) ;
int cholmod_l_version (int version [3]) ;

#ifdef __cplusplus
}
#endif

//==============================================================================
// Large file support
//==============================================================================
Expand Down
8 changes: 8 additions & 0 deletions CHOLMOD/Include/cholmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
CHOLMOD_VER_CODE(CHOLMOD_MAIN_VERSION,CHOLMOD_SUB_VERSION)
#define CHOLMOD_HAS_VERSION_FUNCTION

#ifdef __cplusplus
extern "C" {
#endif

int cholmod_version // returns CHOLMOD_VERSION, defined above
(
// if version is not NULL, then cholmod_version returns its contents as:
Expand All @@ -112,6 +116,10 @@ int cholmod_version // returns CHOLMOD_VERSION, defined above
) ;
int cholmod_l_version (int version [3]) ;

#ifdef __cplusplus
}
#endif

//==============================================================================
// Large file support
//==============================================================================
Expand Down
4 changes: 2 additions & 2 deletions Example/Include/my.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
// file, since it is constructed from Config/my.h.in by cmake.

// version and date for example user library
#define MY_DATE "Sept 18, 2023"
#define MY_DATE "Oct 23, 2023"
#define MY_MAJOR_VERSION 1
#define MY_MINOR_VERSION 4
#define MY_PATCH_VERSION 1
#define MY_PATCH_VERSION 3

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 0bb9a01

Please sign in to comment.