From 90005013c411f264210c2a8111e07e7701a21da1 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Mon, 26 Feb 2018 14:12:13 +0000 Subject: [PATCH] Check if restrict is supported by the compiler and remove hack --- configure.ac | 3 +++ src/inline.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3256c0ff55..72450fc019 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,9 @@ AC_USE_SYSTEM_EXTENSIONS AX_COMPILER_VENDOR AX_COMPILER_VERSION +# Restrict support. +AC_C_RESTRICT + # Interprocedural optimization support. Needs special handling for linking and # archiving as well as compilation with Intels, needs to be done before # libtool is configured (to use correct LD). diff --git a/src/inline.h b/src/inline.h index 282164a802..7477153b5b 100644 --- a/src/inline.h +++ b/src/inline.h @@ -29,7 +29,6 @@ #ifndef INLINE #ifdef __cplusplus #define INLINE inline -#define restrict #else #if __GNUC__ && !__GNUC_STDC_INLINE__ #define INLINE extern inline -- GitLab