aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-08-29 11:22:33 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit1c28ab460287c0f90646b8f373c6e83ac79db6fd (patch)
tree6f7d4df17eb2121a4d097fafca6a396e68fae580 /utils
parentcf3fe9403d8961caf9c9276ce7231c0f45cfe223 (diff)
downloadComputeLibrary-1c28ab460287c0f90646b8f373c6e83ac79db6fd.tar.gz
COMPMID-1543: Unable to include ImageLoader.h in multiple object files
Removed STB_IMAGE_IMPLEMENTATION from the ImageLoader.h header and moved it to utils/Utils.cpp Change-Id: Ic41efd723c0c07d3ede86872fad411f2ffc5f162 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145989 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/ImageLoader.h1
-rw-r--r--utils/Utils.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/utils/ImageLoader.h b/utils/ImageLoader.h
index cc9619d3f1..24fcbe179a 100644
--- a/utils/ImageLoader.h
+++ b/utils/ImageLoader.h
@@ -33,7 +33,6 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
-#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#pragma GCC diagnostic pop
diff --git a/utils/Utils.cpp b/utils/Utils.cpp
index 057d309b2e..1d086765b3 100644
--- a/utils/Utils.cpp
+++ b/utils/Utils.cpp
@@ -28,6 +28,12 @@
#include <iomanip>
#include <string>
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wswitch-default"
+#define STB_IMAGE_IMPLEMENTATION
+#include "stb/stb_image.h"
+#pragma GCC diagnostic pop
+
namespace arm_compute
{
namespace utils