# HG changeset patch # User Edouard Tisserant # Date 1317214526 -7200 # Node ID 7f2e120c7352bfd7f17cdb51c87c8d70565cf426 # Parent 60b012b7793f129e640208d1d8e876329c4b28a0 moved declaration __STR_CMP to prevent warning diff -r 60b012b7793f -r 7f2e120c7352 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) /***************/