jpeg-compressor: Fix include when compiling with Clang and FORTIFY_SOURCE >= 1

This commit is contained in:
Stefan Cristian B. 2025-01-31 06:04:05 +02:00 committed by Rémi Verschelde
parent ee4acfbfbf
commit 4462363e1e
2 changed files with 21 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include "jpge.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -933,7 +934,6 @@ namespace jpge {
}
// Higher level wrappers/examples (optional).
#include <stdio.h>
class cfile_stream : public output_stream
{

View File

@ -0,0 +1,20 @@
diff --git a/thirdparty/jpeg-compressor/jpge.cpp b/thirdparty/jpeg-compressor/jpge.cpp
index 5a36c19653..bb0c54bbf0 100644
--- a/thirdparty/jpeg-compressor/jpge.cpp
+++ b/thirdparty/jpeg-compressor/jpge.cpp
@@ -30,6 +30,7 @@
#include "jpge.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -933,7 +934,6 @@ namespace jpge {
}
// Higher level wrappers/examples (optional).
-#include <stdio.h>
class cfile_stream : public output_stream
{