summaryrefslogtreecommitdiff
path: root/libopenjpeg/j2k_lib.h
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-21 12:57:39 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-21 12:57:39 +0000
commit1d02a8b59505e2faace66ad5cbb607e994cc46eb (patch)
tree208454018bf1bfb34e5239798fbf1d009a210aa0 /libopenjpeg/j2k_lib.h
parent07be749bf2a8a1ae27f31b24b2eb132f5537b665 (diff)
Use <xmmintrin.h> for WIN32, else use <mm_malloc.h>
Diffstat (limited to 'libopenjpeg/j2k_lib.h')
-rw-r--r--libopenjpeg/j2k_lib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopenjpeg/j2k_lib.h b/libopenjpeg/j2k_lib.h
index 84a68c06..d13ac5fe 100644
--- a/libopenjpeg/j2k_lib.h
+++ b/libopenjpeg/j2k_lib.h
@@ -61,7 +61,11 @@ Allocate memory aligned to a 16 byte boundry
@param size Bytes to allocate
@return Returns a void pointer to the allocated space, or NULL if there is insufficient memory available
*/
+#ifdef WIN32
#include <xmmintrin.h>
+#else
+#include <mm_malloc.h>
+#endif
#define opj_aligned_malloc(size) _mm_malloc(size, 16)
#define opj_aligned_free(m) _mm_free(m)