Skip to content

Commit

Permalink
Remove detection config for the restrict keyword. This can be done ea…
Browse files Browse the repository at this point in the history
…sily in the preprocessor instead.
  • Loading branch information
insertinterestingnamehere committed Sep 16, 2024
1 parent a854a4f commit aaa085e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 108 deletions.
102 changes: 0 additions & 102 deletions config/ax_c_restrict.m4

This file was deleted.

1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ AS_IF([test "x$qthread_cv_cxx_compiler_type" = "xIntel"],

AC_C_CONST
AC_C_INLINE
AX_C_RESTRICT
AC_C_VOLATILE
AS_IF([test "x$enable_third_party_benchmarks" = xyes],
[AX_OPENMP([have_openmp=yes], [have_openmp=no])
Expand Down
11 changes: 6 additions & 5 deletions include/qthread/common.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
/* Last resort, if no function name macros can be found */
#undef __FUNCTION__

/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#ifndef restrict
#undef restrict
#ifdef __cplusplus
#ifdef __GNUC__
#define restrict __restrict
#else
#define restrict
#endif
#endif

/* If __builtin_trap can be used */
Expand Down

0 comments on commit aaa085e

Please sign in to comment.