Merge pull request #687 from stweil/memalign

Fix fatal crash on 64 bit Linux
This commit is contained in:
Matthieu Darbois
2016-01-06 23:15:05 +01:00

View File

@@ -32,6 +32,10 @@
#define OPJ_SKIP_POISON #define OPJ_SKIP_POISON
#include "opj_includes.h" #include "opj_includes.h"
#if defined(OPJ_HAVE_MALLOC_H) && defined(OPJ_HAVE_MEMALIGN)
# include <malloc.h>
#endif
#ifndef SIZE_MAX #ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1) # define SIZE_MAX ((size_t) -1)
#endif #endif