mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
jpeg-compressor: Fix include when compiling with Clang and FORTIFY_SOURCE >= 1
This commit is contained in:
parent
ee4acfbfbf
commit
4462363e1e
2
thirdparty/jpeg-compressor/jpge.cpp
vendored
2
thirdparty/jpeg-compressor/jpge.cpp
vendored
@ -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
|
||||
{
|
||||
|
20
thirdparty/jpeg-compressor/patches/clang-fortify-fix.patch
vendored
Normal file
20
thirdparty/jpeg-compressor/patches/clang-fortify-fix.patch
vendored
Normal 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
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user