--- parser3/src/include/pa_threads.h 2020/12/11 14:59:19 1.35 +++ parser3/src/include/pa_threads.h 2024/11/04 03:53:25 1.39 @@ -1,18 +1,22 @@ /** @file Parser: mutex & helpers decls. - Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #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.39 2024/11/04 03:53:25 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;