diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-28 16:53:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-28 16:55:55 +0300 |
commit | 47953dee79202e1074ddfd0f85a2f5fa6a73d3dd (patch) | |
tree | 1c156c151279eeb23eb157af381bbb264f465949 | |
parent | e58c6cf0c678849cf9c348a8df5e0ec24a6abd4d (diff) |
Fix Linux build after Cryptomatte commit.
-rw-r--r-- | build_files/cmake/macros.cmake | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_murmurhash.cpp | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index e2af3667f2a..acbbdef6dd4 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -666,10 +666,10 @@ function(SETUP_BLENDER_SORTED_LIBS) bf_intern_mikktspace bf_intern_dualcon bf_intern_cycles + cycles_device cycles_render cycles_graph cycles_bvh - cycles_device cycles_kernel cycles_util cycles_subd diff --git a/intern/cycles/util/util_murmurhash.cpp b/intern/cycles/util/util_murmurhash.cpp index c1f81e61b72..68b2f2031be 100644 --- a/intern/cycles/util/util_murmurhash.cpp +++ b/intern/cycles/util/util_murmurhash.cpp @@ -21,20 +21,22 @@ * */ +#include <stdlib.h> +#include <string.h> + #include "util/util_algorithm.h" #include "util/util_murmurhash.h" #if defined(_MSC_VER) -# include <stdlib.h> -# define ROTL32(x,y) _rotl(x,y) -# define ROTL64(x,y) _rotl64(x,y) +# define ROTL32(x,y) _rotl(x,y) +# define ROTL64(x,y) _rotl64(x,y) # define BIG_CONSTANT(x) (x) #else ccl_device_inline uint32_t rotl32(uint32_t x, int8_t r) { return (x << r) | (x >> (32 - r)); } -# define ROTL32(x,y) rotl32(x,y) +# define ROTL32(x,y) rotl32(x,y) # define BIG_CONSTANT(x) (x##LLU) #endif |