Revert "Make RenderScript constants variables instead of macros."
This reverts commit ef0c455c3dc44e9919e20062792584cbf01d6255.
The use of UNRELEASED tag in .rsh file is wrong. It leads to incorrect API checking. UNRELEASED can only be used in the .spec files for API definition.
Change-Id: I398c749b5243e4f71cb3c14e7c50e1f5b7c14a9d
diff --git a/api/GenerateHeaderFiles.cpp b/api/GenerateHeaderFiles.cpp
index 9f40d3d..ce778b3 100644
--- a/api/GenerateHeaderFiles.cpp
+++ b/api/GenerateHeaderFiles.cpp
@@ -120,13 +120,7 @@
const Constant* constant = spec.getConstant();
VersionInfo info = spec.getVersionInfo();
writeVersionGuardStart(file, info, constant->getFinalVersion());
-
- *file << "#if (defined(RS_VERSION) && (RS_VERSION >= UNRELEASED))\n";
- *file << "extern const " << spec.getType() << " " << constant->getName() << ";\n";
- *file << "#else\n";
- *file << "#define " << constant->getName() << " " << spec.getValue() << "\n";
- *file << "#endif\n\n";
-
+ *file << "#define " << constant->getName() << " " << spec.getValue() << "\n\n";
writeVersionGuardEnd(file, info);
}