https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0d6dcee968e6ba29b11c9…
commit 0d6dcee968e6ba29b11c9ede4bf24e61fb0b5a2d
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Dec 19 10:54:49 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Wed Dec 19 10:55:20 2018 +0100
[CRT] Use explicit C linkage for intrinsic functions.
Fixes MSVC warnings:
sdk\include\crt\xmmintrin.h(33): warning C4162: '_mm_getcsr': no function with
C linkage found
sdk\include\crt\xmmintrin.h(35): warning C4162: '_mm_setcsr': no function with
C linkage found
---
sdk/include/crt/xmmintrin.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sdk/include/crt/xmmintrin.h b/sdk/include/crt/xmmintrin.h
index 8bb7c7b06b..2db9fb0ea2 100644
--- a/sdk/include/crt/xmmintrin.h
+++ b/sdk/include/crt/xmmintrin.h
@@ -25,6 +25,10 @@ typedef union _DECLSPEC_INTRIN_TYPE _CRT_ALIGN(16) __m128
} __m128;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern __m128 _mm_load_ss(float const*);
extern int _mm_cvt_ss2si(__m128);
@@ -64,6 +68,9 @@ __INTRIN_INLINE void _mm_setcsr(unsigned int val)
/* Alternate names */
#define _mm_cvtss_si32 _mm_cvt_ss2si
+#ifdef __cplusplus
+}
+#endif
/* _mm_prefetch constants */
#define _MM_HINT_T0 1