Skip to content

Commit

Permalink
Example: Don't include OpenMP header if building without it.
Browse files Browse the repository at this point in the history
Include `omp.h` only if `_OPENMP` is defined.
  • Loading branch information
mmuetzel committed May 23, 2024
1 parent 45a0099 commit 07c07a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Example/Include/my_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SuiteSparse/Example/Include/my_internal.h
//------------------------------------------------------------------------------

// Copyright (c) 2022-2023, Timothy A. Davis, All Rights Reserved.
// Copyright (c) 2022-2024, Timothy A. Davis, All Rights Reserved.
// SPDX-License-Identifier: BSD-3-clause

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -110,7 +110,9 @@
#endif

// OpenMP include file:
#ifdef _OPENMP
#include <omp.h>
#endif

// GMP and MPFR
#include <gmp.h>
Expand Down

0 comments on commit 07c07a2

Please sign in to comment.