]> granicus.if.org Git - libvpx/commit
Fix compilation on OS/2
authorKO Myung-Hun <komh@chollian.net>
Sun, 14 Oct 2018 14:50:51 +0000 (23:50 +0900)
committerKO Myung-Hun <komh@chollian.net>
Tue, 16 Oct 2018 08:00:15 +0000 (17:00 +0900)
commit191d3ada08df097adbd516ec18b8621d1893ea0f
treebf3ff9f1b1241dbb5dc48191700088182ccb737b
parent0080704038530fc674c8b9b20c1741645ef65819
Fix compilation on OS/2

_beginthread() is not declared on __STRICT_ANSI__ mode.

-----
    [CXX] test/quantize_test.cc.o
In file included from ./vp8/common/threading.h:194:0,
                 from ./vp8/encoder/onyx_int.h:24,
                 from test/quantize_test.cc:24:
./vpx_util/vpx_thread.h: In function 'int pthread_create(TID*, const void*, void* (*)(void*), void*)':
./vpx_util/vpx_thread.h:259:20: error: '_beginthread' was not declared in this scope
   tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);
                    ^~~~~~~~~~~~
./vpx_util/vpx_thread.h:259:20: note: suggested alternative: 'thread'
   tid = (pthread_t)_beginthread(thread_start, NULL, 1024 * 1024, targ);
                    ^~~~~~~~~~~~
                    thread
-----

Change-Id: I774a071162b3876a7f3253ce7c5749f1b0b45818
vpx_util/vpx_thread.h