Skip to content

fix Linux build due to missing include#841

Open
danielmaciel wants to merge 1 commit into
EpicGames:masterfrom
danielmaciel:fix-linux-x86intrin
Open

fix Linux build due to missing include#841
danielmaciel wants to merge 1 commit into
EpicGames:masterfrom
danielmaciel:fix-linux-x86intrin

Conversation

@danielmaciel

Copy link
Copy Markdown
Contributor

No description provided.

@mmozeiko

Copy link
Copy Markdown
Collaborator

This include should be <emmintrin.h> and it should be under #if ARCH_X64 not compiler. Here's a better diff with this fix:

diff --git a/src/base/base_core.h b/src/base/base_core.h
index 6df8361b..33eb6f9c 100644
--- a/src/base/base_core.h
+++ b/src/base/base_core.h
@@ -300,6 +300,10 @@
 # error Atomic intrinsics for pointers not defined for this architecture.
 #endif

+#if ARCH_X64
+# include <emmintrin.h>
+#endif
+
 ////////////////////////////////
 //~ rjf: Linked List Building Macros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants