Index: /trunk/Mars/mfileio/MFitsArray.cc
===================================================================
--- /trunk/Mars/mfileio/MFitsArray.cc	(revision 19254)
+++ /trunk/Mars/mfileio/MFitsArray.cc	(revision 19255)
@@ -92,7 +92,11 @@
          continue;
 
+#if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00)
       if (dataMember->Property() & ( G__BIT_ISENUM | G__BIT_ISSTATIC))
          continue;
-
+#else
+      if (dataMember->Property() & ( EProperty::kIsEnum | EProperty::kIsStatic))
+         continue;
+#endif
       if (strcmp(dataMember->GetTrueTypeName(), "TClass*") == 0)
          continue;
Index: /trunk/Mars/mfileio/MWriteFitsFile.cc
===================================================================
--- /trunk/Mars/mfileio/MWriteFitsFile.cc	(revision 19254)
+++ /trunk/Mars/mfileio/MWriteFitsFile.cc	(revision 19255)
@@ -783,7 +783,13 @@
          continue;
 
+#if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00)
       if (dataMember->Property() & ( G__BIT_ISENUM | G__BIT_ISSTATIC))
          // we cannot store this
          continue;
+#else
+      if (dataMember->Property() & ( EProperty::kIsEnum | kIsStatic))
+         // we cannot store this
+         continue;
+#endif
 
       if (strcmp(dataMember->GetTrueTypeName(), "TClass*") == 0)
@@ -889,5 +895,9 @@
 //          continue;
 
+#if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00)
       if (dataMember->Property() & G__BIT_ISCLASS)
+#else
+      if (dataMember->Property() & EProperty::kIsClass)
+#endif
          {
          // special treatment for classes
