fix undefined behaviours and jpeg crash on non-windows platforms

This commit is contained in:
nillerusr
2023-10-08 07:31:07 +03:00
parent 047f8b1185
commit 5a4d0b7a4d
4 changed files with 10 additions and 4 deletions

View File

@@ -65,9 +65,12 @@ extern void longjmp( jmp_buf, int ) __attribute__((noreturn));
#define JPEGLIB_USE_STDIO
#if ANDROID
#include "android/jpeglib/jpeglib.h"
#else
#elif defined WIN32
#include "jpeglib/jpeglib.h"
#else
#include <jpeglib.h>
#endif
#undef JPEGLIB_USE_STDIO