projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix fatal crash on 64 bit Linux
[openjpeg.git]
/
src
/
lib
/
openjp2
/
opj_malloc.c
diff --git
a/src/lib/openjp2/opj_malloc.c
b/src/lib/openjp2/opj_malloc.c
index e91b660e9a0a8acabc48b3dfcef535ef454d4e95..e04db912b88b941f1d701283916e278a94e1ce71 100644
(file)
--- a/
src/lib/openjp2/opj_malloc.c
+++ b/
src/lib/openjp2/opj_malloc.c
@@
-32,6
+32,10
@@
#define OPJ_SKIP_POISON
#include "opj_includes.h"
+#if defined(OPJ_HAVE_MALLOC_H) && defined(OPJ_HAVE_MEMALIGN)
+# include <malloc.h>
+#endif
+
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
#endif