fixed a macro that defines HOSTwrite
diff --git a/src/packages/xdc/runtime/SysMin.xdt b/src/packages/xdc/runtime/SysMin.xdt
index 1f89fb9..fb5a41f 100644
--- a/src/packages/xdc/runtime/SysMin.xdt
+++ b/src/packages/xdc/runtime/SysMin.xdt
@@ -1,11 +1,11 @@
 %%{
 /* --COPYRIGHT--,ESD
- *  Copyright (c) 2008 Texas Instruments. All rights reserved. 
- *  This program and the accompanying materials are made available under the 
+ *  Copyright (c) 2008-2019 Texas Instruments Incorporated
+ *  This program and the accompanying materials are made available under the
  *  terms of the Eclipse Public License v1.0 and Eclipse Distribution License
  *  v. 1.0 which accompanies this distribution. The Eclipse Public License is
  *  available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
- *  Distribution License is available at 
+ *  Distribution License is available at
  *  http://www.eclipse.org/org/documents/edl-v10.php.
  *
  *  Contributors:
@@ -17,7 +17,7 @@
 
 #if defined(__ti__)
 extern int HOSTwrite(int, const char *, unsigned);
-#elif (defined(gnu_targets_STD_) && defined(xdc_target__os_undefined))
+#elif (defined(gnu_targets_arm_STD_) && defined(xdc_target__os_undefined))
 extern int _write(int, char *, int);
 #define HOSTwrite(x,y,z) _write((int)(x),(char *)(y),(int)(z))
 #elif defined(__IAR_SYSTEMS_ICC__)
@@ -35,9 +35,9 @@
  */
 xdc_Void xdc_runtime_SysMin_output__I(xdc_Char *buf, xdc_UInt size)
 {
-#if defined(__ti__) || (defined(gnu_targets_STD_) && defined(xdc_target__os_undefined)) || defined (__IAR_SYSTEMS_ICC__)
+#if defined(__ti__) || (defined(gnu_targets_arm_STD_) && defined(xdc_target__os_undefined)) || defined (__IAR_SYSTEMS_ICC__)
     xdc_Int printCount;
-    
+
     while (size != 0) {
         printCount = HOSTwrite(1, buf, size);
         if ((printCount <= 0) || ((xdc_UInt)printCount > size)) {
@@ -45,7 +45,7 @@
         }
         size -= printCount;
         buf = buf + printCount;
-    }    
+    }
 #else
     fwrite(buf, 1, size, stdout);
 #endif