[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openmp: add workaround for 32-bit programs on AIX
From: |
Bruno Haible |
Subject: |
Re: openmp: add workaround for 32-bit programs on AIX |
Date: |
Sat, 13 Apr 2019 00:09:46 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
> 2019-04-09 Bruno Haible <address@hidden>
>
> openmp: Add workaround for 32-bit programs on AIX.
Oops, this code did not compile on platforms without <omp.h>. This fixes it.
2019-04-12 Bruno Haible <address@hidden>
openmp: Fix compilation error on platforms without OpenMP.
* lib/omp-init.c: Include <omp.h> only if _OPENMP.
diff --git a/lib/omp-init.c b/lib/omp-init.c
index f849067..0256d29 100644
--- a/lib/omp-init.c
+++ b/lib/omp-init.c
@@ -17,8 +17,12 @@
#include <config.h>
+#ifdef _OPENMP
+
/* Specification. */
-#include <omp.h>
+# include <omp.h>
+
+#endif
#include <stdlib.h>