Diff of /STM8S_StdPeriph_Driver/src/stm8s_itc.c [f6f117] .. [8ad5a4]  Maximize  Restore

Switch to side-by-side view

--- a/STM8S_StdPeriph_Driver/src/stm8s_itc.c
+++ b/STM8S_StdPeriph_Driver/src/stm8s_itc.c
@@ -49,9 +49,12 @@
   return; /* Ignore compiler warning, the returned value is in A register */
 #elif defined _RAISONANCE_ /* _RAISONANCE_ */
   return _getCC_();
-#else /* _IAR_ */
+#elif defined _IAR_ 
   asm("push cc");
   asm("pop a"); /* Ignore compiler warning, the returned value is in A register */
+#else
+  __asm__("push cc");
+  __asm__("pop a"); /* Ignore compiler warning, the returned value is in A register */
 #endif /* _COSMIC_*/
 }