termux-packages/x11-packages/sfml/src-SFML-System-Unix-ThreadImpl.cpp.patch

21 lines
666 B
Diff
Raw Normal View History

2022-04-28 20:56:41 +02:00
--- a/src/SFML/System/Unix/ThreadImpl.cpp
+++ b/src/SFML/System/Unix/ThreadImpl.cpp
@@ -62,7 +62,7 @@
{
if (m_isActive)
{
- #ifndef SFML_SYSTEM_ANDROID
+ #ifndef __ANDROID__
pthread_cancel(m_thread);
#else
// See https://stackoverflow.com/questions/4610086/pthread-cancel-al
@@ -78,7 +78,7 @@
// The Thread instance is stored in the user data
Thread* owner = static_cast<Thread*>(userData);
- #ifndef SFML_SYSTEM_ANDROID
+ #ifndef __ANDROID__
// Tell the thread to handle cancel requests immediately
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
#endif