]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JGetORTEConstant.c
orte 0.3.2 release
[orte.git] / orte / libjorte / JGetORTEConstant.c
index aec2700c9415ed8d29f030ff269cb18f6afd4408..6c2be0a0c773c180d80fcf67a8ed01e015a2797b 100644 (file)
@@ -32,7 +32,7 @@
 
 /* macro for comparing 2 strings */
 /* if(a==b) -> strcmp = 0 */
-#define compare(a,b) ((strcmp((a),(b)) == 0) ? 1 : 0)
+#define compare(a,b) ((strcmp((const char *)(a), (const char*)(b)) == 0) ? 1 : 0)
 
 
 /* global variables */
@@ -143,7 +143,7 @@ const char *c = "MAX";
 
 int get_const(char *konstanta)
 {
-#define xxx(name) if (strcmp(konstanta, #name )) return name
+#define xxx(name) if (strcmp((const char *)konstanta, (const char*)#name)) return name
         xxx(MAX);
         xxx(MIN);
 }