| |
@@ -0,0 +1,77 @@
|
| |
+ From 29403836c60fd8d61325e9972d3a56d8b0ff0178 Mon Sep 17 00:00:00 2001
|
| |
+ From: Jeremy Ong <jeremycong@gmail.com>
|
| |
+ Date: Thu, 16 Jan 2020 12:40:20 -0700
|
| |
+ Subject: [PATCH] Fix numerous compiler warnings and errors
|
| |
+
|
| |
+ Depending on OS and compiler, certain types may not be included
|
| |
+ transitively by headers that were included previously. This commit
|
| |
+ produces a clean build on the latest trunk versions of GCC, Clang,
|
| |
+ and QT.
|
| |
+ ---
|
| |
+ renderdoc/common/dds_readwrite.h | 1 +
|
| |
+ renderdoc/core/core.h | 1 +
|
| |
+ renderdoc/os/os_specific.h | 1 +
|
| |
+ renderdoc/os/posix/linux/linux_stringio.cpp | 1 +
|
| |
+ renderdoc/strings/utf8printf.cpp | 1 +
|
| |
+ 5 files changed, 5 insertions(+)
|
| |
+
|
| |
+ diff --git a/renderdoc/common/dds_readwrite.h b/renderdoc/common/dds_readwrite.h
|
| |
+ index a718889a1..0723057fd 100644
|
| |
+ --- a/renderdoc/common/dds_readwrite.h
|
| |
+ +++ b/renderdoc/common/dds_readwrite.h
|
| |
+ @@ -24,6 +24,7 @@
|
| |
+
|
| |
+ #pragma once
|
| |
+
|
| |
+ +#include <stdio.h>
|
| |
+ #include "api/replay/data_types.h"
|
| |
+
|
| |
+ struct dds_data
|
| |
+ diff --git a/renderdoc/core/core.h b/renderdoc/core/core.h
|
| |
+ index 0f7df0726..4440714df 100644
|
| |
+ --- a/renderdoc/core/core.h
|
| |
+ +++ b/renderdoc/core/core.h
|
| |
+ @@ -26,6 +26,7 @@
|
| |
+ #pragma once
|
| |
+
|
| |
+ #include <stdint.h>
|
| |
+ +#include <stdio.h>
|
| |
+ #include <map>
|
| |
+ #include "api/app/renderdoc_app.h"
|
| |
+ #include "api/replay/apidefs.h"
|
| |
+ diff --git a/renderdoc/os/os_specific.h b/renderdoc/os/os_specific.h
|
| |
+ index 5191bcaea..b5f796d59 100644
|
| |
+ --- a/renderdoc/os/os_specific.h
|
| |
+ +++ b/renderdoc/os/os_specific.h
|
| |
+ @@ -34,6 +34,7 @@
|
| |
+ #include <stdarg.h>
|
| |
+ #include <stddef.h>
|
| |
+ #include <stdint.h>
|
| |
+ +#include <stdio.h>
|
| |
+ #include <functional>
|
| |
+ #include "api/replay/rdcarray.h"
|
| |
+ #include "api/replay/rdcpair.h"
|
| |
+ diff --git a/renderdoc/os/posix/linux/linux_stringio.cpp b/renderdoc/os/posix/linux/linux_stringio.cpp
|
| |
+ index 27b25476c..d0def39f0 100644
|
| |
+ --- a/renderdoc/os/posix/linux/linux_stringio.cpp
|
| |
+ +++ b/renderdoc/os/posix/linux/linux_stringio.cpp
|
| |
+ @@ -22,6 +22,7 @@
|
| |
+ * THE SOFTWARE.
|
| |
+ ******************************************************************************/
|
| |
+
|
| |
+ +#include <ctype.h>
|
| |
+ #include <dlfcn.h>
|
| |
+ #include <errno.h>
|
| |
+ #include <iconv.h>
|
| |
+ diff --git a/renderdoc/strings/utf8printf.cpp b/renderdoc/strings/utf8printf.cpp
|
| |
+ index d09fd2d64..254841d22 100644
|
| |
+ --- a/renderdoc/strings/utf8printf.cpp
|
| |
+ +++ b/renderdoc/strings/utf8printf.cpp
|
| |
+ @@ -22,6 +22,7 @@
|
| |
+ * THE SOFTWARE.
|
| |
+ ******************************************************************************/
|
| |
+
|
| |
+ +#include <wchar.h>
|
| |
+ #include "common/common.h"
|
| |
+ #include "os/os_specific.h"
|
| |
+
|
| |
New upstream release.