OSDN Git Service

Work around stlport build bug.
authorNicolas Capens <capn@google.com>
Fri, 4 Aug 2017 13:33:04 +0000 (09:33 -0400)
committerNicolas Capens <nicolascapens@google.com>
Fri, 4 Aug 2017 15:02:05 +0000 (15:02 +0000)
Older versions of Android using stlport were failing to compile with an
"assert has been defined before inclusion of assert.h header" error.

Change-Id: If8e13eb08c35a34d082d99f8f57188bc55697f59
Reviewed-on: https://swiftshader-review.googlesource.com/11270
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Common/DebugAndroid.hpp
src/Reactor/Reactor.hpp

index ac937e0..6dfb61d 100644 (file)
@@ -16,6 +16,7 @@
 #define DebugAndroid_hpp
 
 #include <cutils/log.h>
+#include <cassert>
 
 // On Android Virtual Devices we heavily depend on logging, even in
 // production builds. We do this because AVDs are components of larger
index 62d9397..46973da 100644 (file)
@@ -18,7 +18,7 @@
 #include "Nucleus.hpp"
 #include "Routine.hpp"
 
-#include <assert.h>
+#include <cassert>
 #include <cstddef>
 #include <cwchar>
 #undef Bool