Description: Check for SSE2 availability to fix FTBFS on i386.
 Debian baseline is too old now.
Author: Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Last-Update: 2025-02-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/cborinternal_p.h
+++ b/src/cborinternal_p.h
@@ -49,7 +49,7 @@
  * define this macro unconditionally when __STDC_WANT_IEC_60559_TYPES_EXT__
  * is defined (regardless of actual support for _Float16).
  */
-#  if FLT16_MANT_DIG > 0 || __FLT16_MANT_DIG__ > 0
+#  if defined(__SSE2__) && (FLT16_MANT_DIG > 0 || __FLT16_MANT_DIG__ > 0)
 static inline unsigned short encode_half(float x)
 {
     unsigned short h;
