Skip to content

Commit

Permalink
Re-instate 87168 - use C99 inlining semantics.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87176 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Sep 18, 2024
1 parent 3550807 commit 61cae07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/include/Rinlinedfuns.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
#ifndef R_INLINES_H_
#define R_INLINES_H_

#if defined(__GNUC_STDC_INLINE__) && !defined(C99_INLINE_SEMANTICS)
/* Probably not able to use C99 semantics in gcc < 4.3.0 */
#if __GNUC__ == 4 && __GNUC_MINOR__ >= 3 && defined(__GNUC_STDC_INLINE__) && !defined(C99_INLINE_SEMANTICS)
#define C99_INLINE_SEMANTICS 1
# if defined(__clang__) || __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 3
# define C99_INLINE_SEMANTICS 1
# endif
#endif

/* Apple's gcc build >5400 (since Xcode 3.0) doesn't support GNU inline in C99 mode
Expand Down

0 comments on commit 61cae07

Please sign in to comment.