1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

build: GCC9 compilation

This commit is contained in:
Alexander Alekhin
2019-11-11 17:20:07 +03:00
parent ba58bba4e8
commit 7ecdcf6ca6
9 changed files with 38 additions and 3 deletions
+4 -1
View File
@@ -634,10 +634,13 @@ CV_IMPL int cvStartWindowThread(){
cvInitSystem(0,NULL);
if (!thread_started)
{
if (!g_thread_supported ()) {
#if !GLIB_CHECK_VERSION(2, 32, 0) // https://github.com/GNOME/glib/blame/b4d58a7105bb9d75907233968bb534b38f9a6e43/glib/deprecated/gthread.h#L274
if (!g_thread_supported ())
{
/* the GThread system wasn't inited, so init it */
g_thread_init(NULL);
}
#endif
(void)getWindowMutex(); // force mutex initialization