Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

JPEG 2000 / XL viewer for DOS (Users)

posted by Zyzzle, 12.09.2023, 10:04

> But this is not the problem. Current libc declares:
> void *memalign(size_t _align, size_t _amt);
>
> and OpenJPEG uses the right argument order
>
> #ifdef HAVE_MEMALIGN
> extern void* memalign(size_t, size_t);
> #undef opj_aligned_malloc
> #define opj_aligned_malloc(size) memalign(16, (size))
> #undef opj_aligned_free
> #define opj_aligned_free(m) free(m)
> #endif
>
> The problem is if align is > 8, then it crashes :\
Good catch / debugging. With the change of memalign to 8 in MALLOC of the libc I was able to successfully (cross)compile version 2.5 also. My compiled executables now work well without crashes.

Thanks to all for this great discussion.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 127 users online (1 registered, 126 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum