Merge pull request #105 from Wunkolo/tunit-stb_image_write

Move `stb_image_write` into its own translation unit
This commit is contained in:
Wunk
2023-07-11 11:03:08 -07:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ endif()
set(SOURCE_FILES src/main.cpp src/emulator.cpp src/io_file.cpp src/gl_state.cpp src/config.cpp
src/core/CPU/cpu_dynarmic.cpp src/core/CPU/dynarmic_cycles.cpp src/core/memory.cpp
src/httpserver.cpp
src/httpserver.cpp src/stb_image_write.c
)
set(CRYPTO_SOURCE_FILES src/core/crypto/aes_engine.cpp)
set(KERNEL_SOURCE_FILES src/core/kernel/kernel.cpp src/core/kernel/resource_limits.cpp

View File

@@ -1,5 +1,5 @@
#include "emulator.hpp"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#ifdef _WIN32

2
src/stb_image_write.c Normal file
View File

@@ -0,0 +1,2 @@
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>