From 07c07a2c8caa47abff24ecf53b4f97ad912d2073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Thu, 23 May 2024 10:09:49 +0200 Subject: [PATCH] Example: Don't include OpenMP header if building without it. Include `omp.h` only if `_OPENMP` is defined. --- Example/Include/my_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Example/Include/my_internal.h b/Example/Include/my_internal.h index e30474086..4a349489f 100644 --- a/Example/Include/my_internal.h +++ b/Example/Include/my_internal.h @@ -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 //------------------------------------------------------------------------------ @@ -110,7 +110,9 @@ #endif // OpenMP include file: +#ifdef _OPENMP #include +#endif // GMP and MPFR #include