Add support for ARMCompiler 6.19
See Release Notes for ARMCompiler 6.19 for more
information about the _sys_tmpnam change.
Change-Id: Icf05d4c59d7fc6aed437744edd017447450da9cd
diff --git a/targets/corstone-310/retarget.c b/targets/corstone-310/retarget.c
index eb1c908..00772e2 100644
--- a/targets/corstone-310/retarget.c
+++ b/targets/corstone-310/retarget.c
@@ -172,6 +172,15 @@
return -1;
}
+#if __ARMCLIB_VERSION >= 6190004
+int RETARGET(_tmpnam2)(char *name, int sig, unsigned maxlen) {
+ (void)name;
+ (void)sig;
+ (void)maxlen;
+
+ return -1;
+}
+#else
int RETARGET(_tmpnam)(char *name, int sig, unsigned maxlen) {
(void)name;
(void)sig;
@@ -179,6 +188,7 @@
return 1;
}
+#endif
char *RETARGET(_command_string)(char *cmd, int len) {
(void)len;