Skip to content

Commit

Permalink
gcc 11 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Feb 10, 2024
1 parent 01adebf commit a199184
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/noir/model2.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ struct noir2_s {
struct multiplace_array_s* basis; // this is used in nlinv-net to store basis for trajectory update
};

#ifdef __GNUC__
#if __GNUC__ <= 11
#define N
#endif
#endif

extern struct noir2_s noir2_noncart_create(int N,
const long trj_dims[N], const _Complex float* traj,
const long wgh_dims[N], const _Complex float* weights,
Expand Down Expand Up @@ -94,7 +100,14 @@ extern void noir2_cart_update(struct noir2_s* model, int N,
const long pat_dims[N], const _Complex float* pattern,
const long bas_dims[N], const _Complex float* basis);

#ifdef __GNUC__
#if __GNUC__ <= 11
#undef N
#endif
#endif

extern void noir2_free(struct noir2_s* model);

extern void noir2_orthogonalize(int N, const long col_dims[N], _Complex float* coils);


0 comments on commit a199184

Please sign in to comment.