summaryrefslogtreecommitdiffstats
path: root/scriptc/rs_atomic.rsh
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-09-28 15:23:18 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-09-28 15:23:18 -0700
commit4325387cee36fe373b1a792fb2e65ef00535bbdd (patch)
tree46137a69e619aa10fee9cef4c9aca1e4cc54004c /scriptc/rs_atomic.rsh
parent5b9f3e2e5fe85e6defb424c6f96ddeab1581222c (diff)
downloadandroid_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.tar.gz
android_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.tar.bz2
android_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.zip
Wrapping new API with #defines to prevent old apps from using them.
Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
Diffstat (limited to 'scriptc/rs_atomic.rsh')
-rw-r--r--scriptc/rs_atomic.rsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scriptc/rs_atomic.rsh b/scriptc/rs_atomic.rsh
index 95513ad6..87c6c021 100644
--- a/scriptc/rs_atomic.rsh
+++ b/scriptc/rs_atomic.rsh
@@ -23,6 +23,7 @@
#ifndef __RS_ATOMIC_RSH__
#define __RS_ATOMIC_RSH__
+#if (defined(RS_VERSION) && (RS_VERSION >= 14))
/**
* Atomic add one to the value at addr.
@@ -243,6 +244,7 @@ extern int32_t __attribute__((overloadable))
extern uint32_t __attribute__((overloadable))
rsAtomicCas(volatile uint32_t* addr, int32_t compareValue, int32_t newValue);
+#endif //defined(RS_VERSION) && (RS_VERSION >= 14)
#endif