1
0
Fork 0

Merge pull request #101927 from StefanCristian/master

jpeg-compressor: Fix include when compiling with Clang and `FORTIFY_SOURCE >= 1`
This commit is contained in:
Thaddeus Crews 2025-01-31 09:15:40 -06:00
commit a96e195375
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
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
{