瀏覽代碼

libobs: Fix Mac linker error

Non-static inline functions don't work for some reason.
jpark37 5 年之前
父節點
當前提交
85c9ccb753
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libobs/graphics/half.h

+ 2 - 2
libobs/graphics/half.h

@@ -51,7 +51,7 @@ struct half {
 };
 };
 
 
 /* adapted from DirectXMath XMConvertFloatToHalf */
 /* adapted from DirectXMath XMConvertFloatToHalf */
-inline struct half half_from_float(float f)
+static struct half half_from_float(float f)
 {
 {
 	uint32_t Result;
 	uint32_t Result;
 
 
@@ -90,7 +90,7 @@ inline struct half half_from_float(float f)
 	return h;
 	return h;
 }
 }
 
 
-inline struct half half_from_bits(uint16_t u)
+static struct half half_from_bits(uint16_t u)
 {
 {
 	struct half h;
 	struct half h;
 	h.u = u;
 	h.u = u;