refactored to produce correct object file

master
Anton Lydike 3 years ago
parent 329520da73
commit a71e319fb4

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "images.h"
int image_new(int width, int height, Image* img) { int image_new(int width, int height, Image* img) {
@ -67,3 +68,8 @@ int image_destroy(Image image) {
return 1; return 1;
} }
#include "bmp-format.c"
#include "color.c"
#include "drawing.c"
#include "multithreading.c"

@ -52,10 +52,4 @@ void image_destroy_shared(Image img);
void* create_shared_memory(size_t size); void* create_shared_memory(size_t size);
void free_shared_memory(void* ptr, 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 #endif

@ -1,6 +1,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "images.h" #include "src/images.h"
void test_transparency(); void test_transparency();

Loading…
Cancel
Save