mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-06-08 08:13:55 +00:00
fix build with bionic c
This commit is contained in:
@@ -566,7 +566,7 @@ void X11OpenGLWindow::enableOpenGL()
|
||||
//Access pthreads as a workaround for a bug in Linux/Ubuntu
|
||||
//See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642
|
||||
|
||||
#if !defined(__NetBSD__)
|
||||
#if !defined(__NetBSD__) && !defined(__ANDROID__)
|
||||
int i = pthread_getconcurrency();
|
||||
printf("pthread_getconcurrency()=%d\n", i);
|
||||
#endif
|
||||
|
||||
@@ -8,6 +8,11 @@
|
||||
#define TEST_SHARED_MEMORY
|
||||
#endif //_WIN32
|
||||
|
||||
//Shmem not available on target api < 26
|
||||
#if defined(__ANDROID_API__) && (__ANDROID_API__ < 26)
|
||||
#undef TEST_SHARED_MEMORY
|
||||
#endif //__ANDROID__
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef TEST_SHARED_MEMORY
|
||||
|
||||
Reference in New Issue
Block a user