mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 01:40:13 +00:00
Fix compile
This commit is contained in:
parent
51ff443521
commit
46921fd76a
1 changed files with 2 additions and 1 deletions
|
@ -365,6 +365,7 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
|
|||
inline void *aligned_malloc(size_t size, size_t alignment) { return _aligned_malloc(size, alignment); }
|
||||
inline void aligned_free(void *ptr) { _aligned_free(ptr); }
|
||||
#else
|
||||
#include <malloc.h>
|
||||
inline void *aligned_malloc(size_t size, size_t alignment) { return memalign(alignment, size); }
|
||||
inline void aligned_free(void *ptr) { free(ptr); }
|
||||
#endif /* NL_COMP_ */
|
||||
|
|
Loading…
Reference in a new issue