--- parser3/src/include/pa_threads.h 2020/12/11 14:59:19 1.35 +++ parser3/src/include/pa_threads.h 2020/12/15 17:10:32 1.37 @@ -1,18 +1,22 @@ /** @file Parser: mutex & helpers decls. - Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_THREADS_H #define PA_THREADS_H -#define IDENT_PA_THREADS_H "$Id: pa_threads.h,v 1.35 2020/12/11 14:59:19 moko Exp $" +#define IDENT_PA_THREADS_H "$Id: pa_threads.h,v 1.37 2020/12/15 17:10:32 moko Exp $" #include "pa_config_includes.h" #include "pa_types.h" +#ifdef _MSC_VER +#include +#endif + /// get caller thread ID uint pa_get_thread_id(); @@ -22,7 +26,7 @@ class AutoSYNCHRONIZED; class Mutex { friend class AutoSYNCHRONIZED; -#ifdef WIN32 +#ifdef _MSC_VER HANDLE handle; #else pthread_mutex_t handle;