From 04dd70894182d1931e1153859ec2ae0525ccb930 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 29 Jul 2018 19:40:37 +0200 Subject: [PATCH] Delayed the inclusion of the common headers, so that the backend may properly set up additional parameters for the headers. --- m-mutex.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/m-mutex.h b/m-mutex.h index 79777dbb..d4141af2 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -25,16 +25,15 @@ #ifndef MSTARLIB_MUTEX_H #define MSTARLIB_MUTEX_H -#include -#include -#include "m-core.h" - #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ && !defined(__STDC_NO_THREADS__) /****************************** C11 version ********************************/ #include +#include +#include +#include "m-core.h" typedef mtx_t m_mutex_t[1]; typedef cnd_t m_cond_t[1]; @@ -141,6 +140,9 @@ static inline void m_oncei_call(m_oncei_t o, void (*func)(void)) #define _WIN32_WINNT _WIN32_WINNT_VISTA #endif #include +#include +#include +#include "m-core.h" typedef HANDLE m_thread_t[1]; typedef CRITICAL_SECTION m_mutex_t[1]; @@ -251,6 +253,9 @@ static inline void m_oncei_call(m_oncei_t o, void (*func)(void)) #include #include #include +#include +#include +#include "m-core.h" typedef pthread_mutex_t m_mutex_t[1]; typedef pthread_cond_t m_cond_t[1];