Skip to content

Commit

Permalink
Merge pull request #87 from brendan-duncan/fix_wasm_no_simd_error
Browse files Browse the repository at this point in the history
fix including of wasm simd header with tinybvh_no_simd
  • Loading branch information
jbikker authored Jan 13, 2025
2 parents 27afed6 + f8020f6 commit 548c5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ inline void free64( void* ptr, void* = nullptr ) { _aligned_free( ptr ); }
}
#else // EMSCRIPTEN / gcc / clang
#define ALIGNED( x ) __attribute__( ( aligned( x ) ) )
#if defined(__x86_64__) || defined(_M_X64) || defined(__wasm_simd128__) || defined(__wasm_relaxed_simd__)
#if !defined(TINYBVH_NO_SIMD) && (defined(__x86_64__) || defined(_M_X64) || defined(__wasm_simd128__) || defined(__wasm_relaxed_simd__))
#include <xmmintrin.h>
namespace tinybvh {
inline void* malloc64( size_t size, void* = nullptr )
Expand Down

0 comments on commit 548c5bc

Please sign in to comment.