From 1e1efbdc75487a6c29d76314eb174a6a346a4d8e Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Thu, 8 Jul 2021 00:24:00 -0700 Subject: [PATCH] stb_image_write: Make globals extern "C" in C++ Fixes issue #921 --- stb_image_write.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stb_image_write.h b/stb_image_write.h index f1a1773..d7ed1d3 100644 --- a/stb_image_write.h +++ b/stb_image_write.h @@ -167,9 +167,9 @@ LICENSE #endif #ifndef STB_IMAGE_WRITE_STATIC // C++ forbids static forward declarations -extern int stbi_write_tga_with_rle; -extern int stbi_write_png_compression_level; -extern int stbi_write_force_png_filter; +STBIWDEF int stbi_write_tga_with_rle; +STBIWDEF int stbi_write_png_compression_level; +STBIWDEF int stbi_write_force_png_filter; #endif #ifndef STBI_WRITE_NO_STDIO -- GitLab