Skip to content

Commit

Permalink
LDL: 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 df46377 commit 590d8dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions LDL/Config/ldl.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
#ifndef LDL_H
#define LDL_H

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

#include "SuiteSparse_config.h"

#ifdef LDL_LONG
Expand Down Expand Up @@ -47,6 +42,11 @@ extern "C" {

#endif

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

/* ========================================================================== */
/* === int32_t version ====================================================== */
/* ========================================================================== */
Expand Down Expand Up @@ -102,6 +102,10 @@ int64_t ldl_l_valid_perm (int64_t n, int64_t P [ ], int64_t Flag [ ]) ;

int64_t ldl_l_valid_matrix ( int64_t n, int64_t Ap [ ], int64_t Ai [ ]) ;

#ifdef __cplusplus
}
#endif

/* ========================================================================== */
/* === LDL version ========================================================== */
/* ========================================================================== */
Expand All @@ -114,8 +118,4 @@ int64_t ldl_l_valid_matrix ( int64_t n, int64_t Ap [ ], int64_t Ai [ ]) ;
#define LDL_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
#define LDL_VERSION LDL_VERSION_CODE(LDL_MAIN_VERSION,LDL_SUB_VERSION)

#ifdef __cplusplus
}
#endif

#endif
18 changes: 9 additions & 9 deletions LDL/Include/ldl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
#ifndef LDL_H
#define LDL_H

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

#include "SuiteSparse_config.h"

#ifdef LDL_LONG
Expand Down Expand Up @@ -47,6 +42,11 @@ extern "C" {

#endif

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

/* ========================================================================== */
/* === int32_t version ====================================================== */
/* ========================================================================== */
Expand Down Expand Up @@ -102,6 +102,10 @@ int64_t ldl_l_valid_perm (int64_t n, int64_t P [ ], int64_t Flag [ ]) ;

int64_t ldl_l_valid_matrix ( int64_t n, int64_t Ap [ ], int64_t Ai [ ]) ;

#ifdef __cplusplus
}
#endif

/* ========================================================================== */
/* === LDL version ========================================================== */
/* ========================================================================== */
Expand All @@ -114,8 +118,4 @@ int64_t ldl_l_valid_matrix ( int64_t n, int64_t Ap [ ], int64_t Ai [ ]) ;
#define LDL_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
#define LDL_VERSION LDL_VERSION_CODE(LDL_MAIN_VERSION,LDL_SUB_VERSION)

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 590d8dc

Please sign in to comment.