moved declaration __STR_CMP to prevent warning
authorEdouard Tisserant
Wed, 28 Sep 2011 14:55:26 +0200
changeset 378 7f2e120c7352
parent 377 60b012b7793f
child 379 7dc97c825bb8
moved declaration __STR_CMP to prevent warning
lib/iec_std_lib.h
--- a/lib/iec_std_lib.h	Wed Sep 14 22:58:39 2011 +0200
+++ b/lib/iec_std_lib.h	Wed Sep 28 14:55:26 2011 +0200
@@ -1511,6 +1511,8 @@
 __iec_(TIME)
 #undef __iec_
 
+#define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len)
+
 /* Max for string data types */	
 __extrem_(MAX_STRING, STRING, __STR_CMP(op1,tmp) < 0) /* The explicitly typed standard functions */
 __extrem_(MAX__STRING__STRING, STRING, __STR_CMP(op1,tmp) < 0) /* Overloaded function */
@@ -1829,7 +1831,6 @@
  */
  
 
-#define __STR_CMP(str1, str2) memcmp((char*)&str1.body,(char*)&str2.body, str1.len < str2.len ? str1.len : str2.len)
 
 
     /***************/