summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/al/lib.h6
-rw-r--r--include/al/log.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/al/lib.h b/include/al/lib.h
index 63a2f48..c94f817 100644
--- a/include/al/lib.h
+++ b/include/al/lib.h
@@ -128,6 +128,12 @@ AL_UNUSED_FUNCTION_POP
#define AL_PASTER(X, Y) AL_PASTER_EVALUATOR(X, Y)
#endif
+#ifndef _MSVC_
+#define __al_thread __thread
+#else
+#define __al_thread
+#endif
+
AL_UNUSED_FUNCTION_PUSH
static inline size_t al_next_power_of_two(size_t n)
diff --git a/include/al/log.h b/include/al/log.h
index 8723635..ae3d2d0 100644
--- a/include/al/log.h
+++ b/include/al/log.h
@@ -6,7 +6,7 @@
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
-void al_set_print(void *userdata, s32 (*print_func)(void *, char *));
+void al_set_print(s32 (*print_func)(void *, char *), void *userdata);
s32 _al_log(const char *level, const char *section, const char *name, const s32 line,
const char *func, const char *fmt, ...);