From 3c66dcdd4bcee5eda45eef2313f3f53d103e0c9c Mon Sep 17 00:00:00 2001 From: dr-robertk Date: Mon, 18 Jan 2021 10:34:15 +0100 Subject: [PATCH] [bugfix][OpenMP] #ifdef _OPENMP should be used, otherwise linking errors occur. --- examples/make_lodsmry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/make_lodsmry.cpp b/examples/make_lodsmry.cpp index d7b57d949..5e07da441 100644 --- a/examples/make_lodsmry.cpp +++ b/examples/make_lodsmry.cpp @@ -25,7 +25,7 @@ #include "config.h" -#if HAVE_OPENMP +#if _OPENMP #include #endif @@ -69,7 +69,7 @@ int main(int argc, char **argv) { int argOffset = optind; -#if HAVE_OPENMP +#ifdef _OPENMP int available_threads = omp_get_max_threads(); if (max_threads < 0)