summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-01-15 23:04:41 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-01-15 23:04:41 +0000
commitf171923ba15f9ed2c55e42ae9e60a522e890018d (patch)
tree3c1ea4f5f1404530429e185274f55edf064a52cc /cpp/RenderScript.cpp
parent285dc61f8e542cc5195dc232c25319e91c8c0aaf (diff)
parent0f98d50a8128e68760aa6e819b962e9a1d4b5bed (diff)
Merge "Fix NDK API on old devices."
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index 3a75ffe0..04f1e88e 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -23,11 +23,15 @@
#include "rsCppInternal.h"
#include <dlfcn.h>
+#include <unistd.h>
-#if !defined(RS_SERVER) && defined(HAVE_ANDROID_OS)
+#if !defined(RS_SERVER) && !defined(RS_COMPATIBILITY_LIB) && defined(HAVE_ANDROID_OS)
#include <cutils/properties.h>
+#else
+#include "rsCompatibilityLib.h"
#endif
+
using namespace android;
using namespace RSC;
@@ -473,7 +477,6 @@ bool RS::init(std::string &name, int targetApi, uint32_t flags) {
}
mCacheDir = name;
- mCacheDir += "/com.android.renderscript.cache/";
mDev = RS::dispatch->DeviceCreate();
if (mDev == 0) {