vcpkg/ports/ode/fix-error-C3861.patch
Lily Wang 043338aebc
[ode] Fix error C3861 (#27450)
* [ode] Fix error C3861
2022-10-25 21:21:52 -07:00

21 lines
521 B
Diff

diff --git a/ou/include/ou/atomic.h b/ou/include/ou/atomic.h
index 2f90a70..33e0ab9 100644
--- a/ou/include/ou/atomic.h
+++ b/ou/include/ou/atomic.h
@@ -397,6 +397,7 @@ END_NAMESPACE_OU();
#include <windows.h>
#include <stddef.h>
+#include <intrin.h>
BEGIN_NAMESPACE_OU();
@@ -574,7 +575,6 @@ static _OU_ALWAYSINLINE bool _OU_CONVENTION_API
#define __OU_ATOMIC_READREORDERBARRIER_FUNCTION_DEFINED
-#include <intrin.h>
static _OU_ALWAYSINLINE void _OU_CONVENTION_API
/*void */AtomicReadReorderBarrier()