summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libjpeg/src/jinclude.h
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-09-05 10:50:42 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2022-09-06 11:21:43 +0200
commite6d3657f7f90a6a184b391d74a9542ef0acf072c (patch)
treec237aef3e5a85af6f7de3dce39b7a923e20d9f00 /src/3rdparty/libjpeg/src/jinclude.h
parentb4f31336e30e9d39f247fddd34c22c3b3fe01ab9 (diff)
Update bundled libjpeg-turbo to version 2.1.4
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 2.1.4 Pick-to: 6.4 6.2 5.15 Change-Id: Iaffb12606ec53c3ee217b51ad20663aa4409eafa Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/3rdparty/libjpeg/src/jinclude.h')
-rw-r--r--src/3rdparty/libjpeg/src/jinclude.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/3rdparty/libjpeg/src/jinclude.h b/src/3rdparty/libjpeg/src/jinclude.h
index 120614b25c..e8d983ac17 100644
--- a/src/3rdparty/libjpeg/src/jinclude.h
+++ b/src/3rdparty/libjpeg/src/jinclude.h
@@ -45,6 +45,18 @@
*/
+#ifdef _MSC_VER
+
+#define SNPRINTF(str, n, format, ...) \
+ _snprintf_s(str, n, _TRUNCATE, format, ##__VA_ARGS__)
+
+#else
+
+#define SNPRINTF snprintf
+
+#endif
+
+
#ifndef NO_GETENV
#ifdef _MSC_VER