[x265] [PATCH] restore WINXP_SUPPORT build option, workaround for CONDITION_VARIABLE on XP

Mario Rohkrämer contact at ligh.de
Sun Mar 30 05:47:10 CEST 2014


Am 30.03.2014, 03:18 Uhr, schrieb Steve Borho <steve at borho.org>:

> Thanks for testing.  Since the gravity seems to lean towards XP, I'll
> leave that as the default for MinGW builds

But this seems to break compiling when WINXP_SUPPORT is not enabled (which  
would be not useful for x86_64 Win64 cross compiles, but may not  
necessarily be enabled either for x86 Win32 builds).

+----
H:/MSYS/home/LigH/x265/source/common/threading.h: In constructor  
'x265::ThreadSafeInteger::ThreadSafeInteger()':
H:/MSYS/home/LigH/x265/source/common/threading.h:201:42: error:  
'InitializeConditionVariable' was not declared in this scope
          InitializeConditionVariable(&m_cv);
                                           ^
H:/MSYS/home/LigH/x265/source/common/threading.h: In member function 'int  
x265::ThreadSafeInteger::waitForChange(int)':
H:/MSYS/home/LigH/x265/source/common/threading.h:214:60: error:  
'SleepConditionVariableCS' was not declared in this scope
              SleepConditionVariableCS(&m_cv, &m_cs, INFINITE);
                                                             ^
H:/MSYS/home/LigH/x265/source/common/threading.h: In member function 'void  
x265::ThreadSafeInteger::set(int)':
H:/MSYS/home/LigH/x265/source/common/threading.h:231:39: error:  
'WakeAllConditionVariable' was not declared in this scope
          WakeAllConditionVariable(&m_cv);
                                        ^
H:/MSYS/home/LigH/x265/source/common/threading.h: In member function 'void  
x265::ThreadSafeInteger::incr()':
H:/MSYS/home/LigH/x265/source/common/threading.h:239:39: error:  
'WakeAllConditionVariable' was not declared in this scope
          WakeAllConditionVariable(&m_cv);
                                        ^
+----

-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de


More information about the x265-devel mailing list