Fix Linux build after Cryptomatte commit.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user