From aa7f5177f272f6ec23048ec2088347446032f77e Mon Sep 17 00:00:00 2001 From: jermainedupris <> Date: Wed, 14 Apr 2021 22:47:07 -0700 Subject: [PATCH] [hio] Don't export stbimage functions for linkage with things that may also use stbimage. --- pxr/imaging/hio/stbImage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pxr/imaging/hio/stbImage.cpp b/pxr/imaging/hio/stbImage.cpp index a202c50d89..17fa88cfe5 100644 --- a/pxr/imaging/hio/stbImage.cpp +++ b/pxr/imaging/hio/stbImage.cpp @@ -39,12 +39,15 @@ #include "pxr/base/tf/stringUtils.h" #include "pxr/base/tf/type.h" +#define STB_IMAGE_STATIC #define STB_IMAGE_IMPLEMENTATION #include "pxr/imaging/hio/stb/stb_image.h" +#define STB_IMAGE_RESIZE_STATIC #define STB_IMAGE_RESIZE_IMPLEMENTATION #include "pxr/imaging/hio/stb/stb_image_resize.h" +#define STB_IMAGE_WRITE_STATIC #define STB_IMAGE_WRITE_IMPLEMENTATION #include "pxr/imaging/hio/stb/stb_image_write.h"