diff --git a/attributes/ecmwf-yaml.h b/attributes/ecmwf-yaml.h
index 08c42fe02e40bfc40603f8b5ccecdc60fbeba6d7..ec8e45df60442f2f6a81bde04146c635099bebe3 100644
--- a/attributes/ecmwf-yaml.h
+++ b/attributes/ecmwf-yaml.h
@@ -155,4 +155,4 @@ unsigned char ecmwf_yaml[] = {
   0x74, 0x65, 0x6f, 0x72, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c,
   0x20, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x0a
 };
-const unsigned int ecmwf_yaml_len = 1859;
+#define ecmwf_yaml_len ((unsigned int)1859)
diff --git a/attributes/maestro-core-yaml.h b/attributes/maestro-core-yaml.h
index fbd848bf6a6039ce343cec8b9d35a46d6dc53e24..dd49957d00ebf1f0775616c504da23f3ebbe37fc 100644
--- a/attributes/maestro-core-yaml.h
+++ b/attributes/maestro-core-yaml.h
@@ -412,4 +412,4 @@ unsigned char maestro_core_yaml[] = {
   0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x79, 0x61, 0x6d, 0x6c, 0x29, 0x0a,
   0x0a
 };
-const unsigned int maestro_core_yaml_len = 4933;
+#define maestro_core_yaml_len ((unsigned int)4933)