From a71e319fb4929135d51e4585a334643c194f5196 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 8 May 2022 16:16:22 +0200 Subject: [PATCH] refactored to produce correct object file --- src/images.c | 6 ++++++ images.h => src/images.h | 6 ------ test.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename images.h => src/images.h (90%) diff --git a/src/images.c b/src/images.c index 347e7ca..a02870e 100644 --- a/src/images.c +++ b/src/images.c @@ -1,6 +1,7 @@ #include #include #include +#include "images.h" int image_new(int width, int height, Image* img) { @@ -67,3 +68,8 @@ int image_destroy(Image image) { return 1; } + +#include "bmp-format.c" +#include "color.c" +#include "drawing.c" +#include "multithreading.c" diff --git a/images.h b/src/images.h similarity index 90% rename from images.h rename to src/images.h index 0a80d4e..dcd628f 100644 --- a/images.h +++ b/src/images.h @@ -52,10 +52,4 @@ void image_destroy_shared(Image img); void* create_shared_memory(size_t size); void free_shared_memory(void* ptr, size_t size); -#include "src/images.c" -#include "src/bmp-format.c" -#include "src/color.c" -#include "src/drawing.c" -#include "src/multithreading.c" - #endif \ No newline at end of file diff --git a/test.c b/test.c index 5ad9ef9..6eb8c68 100644 --- a/test.c +++ b/test.c @@ -1,6 +1,6 @@ #include #include -#include "images.h" +#include "src/images.h" void test_transparency();