From 2af04d6ec602b2068d35d5b976f070a1b065f307 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 1 Mar 2019 05:04:45 +0100 Subject: Fix compiler join thread, fix compiliation with clang --- include/std/buffer.h | 2 +- include/std/defs.h | 2 +- include/std/file.h | 2 +- include/std/log.h | 2 +- include/std/mem.h | 2 +- include/std/misc.h | 2 +- include/std/scoped_allocator.h | 2 +- include/std/thread.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'include/std') diff --git a/include/std/buffer.h b/include/std/buffer.h index ed87f29..02cc20a 100644 --- a/include/std/buffer.h +++ b/include/std/buffer.h @@ -20,4 +20,4 @@ CHECK_RESULT int buffer_append(Buffer *self, void *data, usize size); void* buffer_get(Buffer *self, usize index, usize type_size); CHECK_RESULT int buffer_pop(Buffer *self, void *data, usize size); -#endif \ No newline at end of file +#endif diff --git a/include/std/defs.h b/include/std/defs.h index 1376e16..653bf73 100644 --- a/include/std/defs.h +++ b/include/std/defs.h @@ -4,4 +4,4 @@ typedef struct amal_thread amal_thread; typedef struct amal_mutex amal_mutex; -#endif \ No newline at end of file +#endif diff --git a/include/std/file.h b/include/std/file.h index 53d9da3..4224346 100644 --- a/include/std/file.h +++ b/include/std/file.h @@ -26,4 +26,4 @@ CHECK_RESULT int mapped_file_deinit(MappedFile *self); CHECK_RESULT int read_whole_file(const char *filepath, char **data, usize *size); -#endif \ No newline at end of file +#endif diff --git a/include/std/log.h b/include/std/log.h index 6ce9e4c..d13c5bf 100644 --- a/include/std/log.h +++ b/include/std/log.h @@ -10,4 +10,4 @@ void amal_log_info(const char *fmt, ...); void amal_log_warning(const char *fmt, ...); void amal_log_perror(const char *prefix); -#endif \ No newline at end of file +#endif diff --git a/include/std/mem.h b/include/std/mem.h index a5fe9b4..8d91a5a 100644 --- a/include/std/mem.h +++ b/include/std/mem.h @@ -8,4 +8,4 @@ void am_memcpy(void *dest, const void *src, usize size); bool am_memeql(const void *lhs, const void *rhs, usize size); void am_memset(void *dest, int value, usize size); -#endif \ No newline at end of file +#endif diff --git a/include/std/misc.h b/include/std/misc.h index 3ac524a..b979d9c 100644 --- a/include/std/misc.h +++ b/include/std/misc.h @@ -30,4 +30,4 @@ typedef enum { #define NULL ((void*)0) #endif -#endif \ No newline at end of file +#endif diff --git a/include/std/scoped_allocator.h b/include/std/scoped_allocator.h index fdaee2a..ad6e2dd 100644 --- a/include/std/scoped_allocator.h +++ b/include/std/scoped_allocator.h @@ -28,4 +28,4 @@ void scoped_allocator_deinit(ScopedAllocator *self); CHECK_RESULT int scoped_allocator_alloc(ScopedAllocator *self, usize size, void **mem); CHECK_RESULT int scoped_allocator_add_buffer(ScopedAllocator *self, Buffer *buffer); -#endif \ No newline at end of file +#endif diff --git a/include/std/thread.h b/include/std/thread.h index dd09039..972ce3a 100644 --- a/include/std/thread.h +++ b/include/std/thread.h @@ -47,4 +47,4 @@ bool amal_thread_is_main(); /* Returns 0 if the number of usable threads is unknown */ int amal_get_usable_thread_count(); -#endif \ No newline at end of file +#endif -- cgit v1.2.3