mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fix C++11 compilability
Previous commits broke it... :(
This commit is contained in:
@@ -34,7 +34,18 @@ DEALINGS IN THE SOFTWARE.
|
||||
|
||||
#define UNUSED(expr) do { (void)(expr); } while (0)
|
||||
|
||||
Mutex::Mutex()
|
||||
{
|
||||
init_mutex(false);
|
||||
}
|
||||
|
||||
|
||||
Mutex::Mutex(bool recursive)
|
||||
{
|
||||
init_mutex(recursive);
|
||||
}
|
||||
|
||||
void Mutex::init_mutex(bool recursive)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// Windows critical sections are recursive by default
|
||||
@@ -89,5 +100,9 @@ void Mutex::unlock()
|
||||
#endif
|
||||
}
|
||||
|
||||
RecursiveMutex::RecursiveMutex()
|
||||
: Mutex(true)
|
||||
{}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user