Skip to content

Commit

Permalink
BTF: Don't include header in extern "C" block
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Oct 31, 2023
1 parent d5a7b10 commit 319e8e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions BTF/Config/btf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@
#ifndef _BTF_H
#define _BTF_H

#include "SuiteSparse_config.h"

/* make it easy for C++ programs to include BTF */
#ifdef __cplusplus
extern "C" {
#endif

#include "SuiteSparse_config.h"

int32_t btf_maxtrans /* returns # of columns matched */
(
/* --- input, not modified: --- */
Expand Down Expand Up @@ -218,6 +218,10 @@ int32_t btf_order /* returns number of blocks found */
int64_t btf_l_order (int64_t, int64_t *, int64_t *, double , double *,
int64_t *, int64_t *, int64_t *, int64_t *, int64_t *) ;

#ifdef __cplusplus
}
#endif


/* ========================================================================== */
/* === BTF marking of singular columns ====================================== */
Expand Down Expand Up @@ -262,7 +266,4 @@ int64_t btf_l_order (int64_t, int64_t *, int64_t *, double , double *,
#define BTF_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
#define BTF_VERSION BTF_VERSION_CODE(BTF_MAIN_VERSION,BTF_SUB_VERSION)

#ifdef __cplusplus
}
#endif
#endif
11 changes: 6 additions & 5 deletions BTF/Include/btf.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@
#ifndef _BTF_H
#define _BTF_H

#include "SuiteSparse_config.h"

/* make it easy for C++ programs to include BTF */
#ifdef __cplusplus
extern "C" {
#endif

#include "SuiteSparse_config.h"

int32_t btf_maxtrans /* returns # of columns matched */
(
/* --- input, not modified: --- */
Expand Down Expand Up @@ -218,6 +218,10 @@ int32_t btf_order /* returns number of blocks found */
int64_t btf_l_order (int64_t, int64_t *, int64_t *, double , double *,
int64_t *, int64_t *, int64_t *, int64_t *, int64_t *) ;

#ifdef __cplusplus
}
#endif


/* ========================================================================== */
/* === BTF marking of singular columns ====================================== */
Expand Down Expand Up @@ -262,7 +266,4 @@ int64_t btf_l_order (int64_t, int64_t *, int64_t *, double , double *,
#define BTF_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
#define BTF_VERSION BTF_VERSION_CODE(BTF_MAIN_VERSION,BTF_SUB_VERSION)

#ifdef __cplusplus
}
#endif
#endif

0 comments on commit 319e8e7

Please sign in to comment.