openjpeg-1.3-reverse-bogus-aligned-malloc.patch 628 B

12345678910111213141516171819202122
  1. --- OpenJPEG_v1_3/libopenjpeg/opj_malloc.h 2007-12-21 04:19:01.000000000 -0600
  2. +++ trunk/libopenjpeg/opj_malloc.h 2007-10-18 07:26:11.000000000 -0500
  3. @@ -75,9 +75,6 @@
  4. #else /* Not WIN32 */
  5. #if defined(__sun)
  6. #define HAVE_MEMALIGN
  7. - #elif defined(__GNUC__)
  8. - #define HAVE_MEMALIGN
  9. - #include <malloc.h>
  10. /* Linux x86_64 and OSX always align allocations to 16 bytes */
  11. #elif !defined(__amd64__) && !defined(__APPLE__)
  12. /* FIXME: Yes, this is a big assumption */
  13. @@ -85,8 +82,6 @@
  14. #endif
  15. #endif
  16. -
  17. -
  18. #define opj_aligned_malloc(size) malloc(size)
  19. #define opj_aligned_free(m) free(m)