Index: core/src/fxcodec/codec/fx_codec_jpeg.cpp |
diff --git a/core/src/fxcodec/codec/fx_codec_jpeg.cpp b/core/src/fxcodec/codec/fx_codec_jpeg.cpp |
index 544a6d14cf1de2eef8f855421d835f776e709400..925864f2e2d8525db8a5cba16d4773b034b85ff6 100644 |
--- a/core/src/fxcodec/codec/fx_codec_jpeg.cpp |
+++ b/core/src/fxcodec/codec/fx_codec_jpeg.cpp |
@@ -13,7 +13,13 @@ |
extern "C" { |
#undef FAR |
-#include "../../../../third_party/libjpeg/jpeglib.h" |
+#if defined(USE_SYSTEM_LIBJPEG) |
+#include <jpeglib.h> |
+#elif defined(USE_LIBJPEG_TURBO) |
+#include "third_party/libjpeg_turbo/jpeglib.h" |
+#else |
+#include "third_party/libjpeg/jpeglib.h" |
+#endif |
} |
extern "C" { |