diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-10-09 11:00:56 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-09 11:00:56 +0800 |
commit | 81dc67d03f9e1881a6115be51cd92956f5932e43 (patch) | |
tree | 67d2681d014aa6485d8525c39e5d368691487eaa /src | |
parent | 9cd1e7417e76c98094a502131af779145a77c7b9 (diff) |
Ensure __always_inline is defined on operating systems that don't have it
For example, Alpine Linux fails to build libosmocore without us locally
defining __always_inline.
Change-Id: I0c22aac410e668f8fb8d5de57281bcaeb343eeb1
Diffstat (limited to 'src')
-rw-r--r-- | src/conv_acc_sse_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conv_acc_sse_impl.h b/src/conv_acc_sse_impl.h index e6eaaa6d..560af628 100644 --- a/src/conv_acc_sse_impl.h +++ b/src/conv_acc_sse_impl.h @@ -22,6 +22,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +/* Some distributions (notably Alpine Linux) for some strange reason + * don't have this #define */ +#ifndef __always_inline +#define __always_inline inline __attribute__((always_inline)) +#endif + extern int sse41_supported; /* Octo-Viterbi butterfly |