[PATCH] libosmocore[master]: Ensure __always_inline is defined on operating systems that ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon Oct 9 03:03:04 UTC 2017


Review at  https://gerrit.osmocom.org/4162

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
---
M src/conv_acc_sse_impl.h
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/62/4162/1

diff --git a/src/conv_acc_sse_impl.h b/src/conv_acc_sse_impl.h
index e6eaaa6..560af62 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

-- 
To view, visit https://gerrit.osmocom.org/4162
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c22aac410e668f8fb8d5de57281bcaeb343eeb1
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list