From 85c9ccb753a2178c84c49d995757ed3d929de3ca Mon Sep 17 00:00:00 2001 From: jpark37 Date: Thu, 6 Feb 2020 12:51:20 -0800 Subject: [PATCH] libobs: Fix Mac linker error Non-static inline functions don't work for some reason. --- libobs/graphics/half.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/graphics/half.h b/libobs/graphics/half.h index 6d45b3f84..16416d80a 100644 --- a/libobs/graphics/half.h +++ b/libobs/graphics/half.h @@ -51,7 +51,7 @@ struct half { }; /* adapted from DirectXMath XMConvertFloatToHalf */ -inline struct half half_from_float(float f) +static struct half half_from_float(float f) { uint32_t Result; @@ -90,7 +90,7 @@ inline struct half half_from_float(float f) return h; } -inline struct half half_from_bits(uint16_t u) +static struct half half_from_bits(uint16_t u) { struct half h; h.u = u;