Merge pull request #105 from Wunkolo/tunit-stb_image_write
Move `stb_image_write` into its own translation unit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
2
src/stb_image_write.c
Normal file
@@ -0,0 +1,2 @@
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include <stb_image_write.h>
|
||||
Reference in New Issue
Block a user