Wrapping new API with #defines to prevent old apps from using them.
Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
diff --git a/scriptc/rs_atomic.rsh b/scriptc/rs_atomic.rsh
index 95513ad..87c6c02 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 uint32_t __attribute__((overloadable))
rsAtomicCas(volatile uint32_t* addr, int32_t compareValue, int32_t newValue);
+#endif //defined(RS_VERSION) && (RS_VERSION >= 14)
#endif