Merge pull request #687 from stweil/memalign
Fix fatal crash on 64 bit Linux
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user