diff --git a/DDCore/include/DD4hep/GrammarParsed.h b/DDCore/include/DD4hep/GrammarParsed.h
index 8081c7ce52247cf3a533cd0134090f480cf067bd..95785c6479b1453bc735275d2e10481d5fd42af6 100644
--- a/DDCore/include/DD4hep/GrammarParsed.h
+++ b/DDCore/include/DD4hep/GrammarParsed.h
@@ -21,7 +21,7 @@
 #ifndef DD4HEP_GRAMMARPARSED_H
 #define DD4HEP_GRAMMARPARSED_H
 
-#if defined(DD4HEP_DDCORE_GRAMMARUNPARSED_H)
+#if defined(DD4HEP_GRAMMARUNPARSED_H)
 #pragma error "The header files GrammarParsed.h and GrammarUnparsed.h may not be included in the same compilation unit!"
 #endif
 
diff --git a/DDCore/include/DD4hep/GrammarUnparsed.h b/DDCore/include/DD4hep/GrammarUnparsed.h
index be82f155105dbc3b94962013d423a367f5ee766d..68036d2928b31c39079a97d80e64dd685d501d97 100644
--- a/DDCore/include/DD4hep/GrammarUnparsed.h
+++ b/DDCore/include/DD4hep/GrammarUnparsed.h
@@ -21,7 +21,7 @@
 #ifndef DD4HEP_GRAMMARUNPARSED_H
 #define DD4HEP_GRAMMARUNPARSED_H
 
-#if defined(DD4HEP_DDCORE_GRAMMARPARSED_H)
+#if defined(DD4HEP_GRAMMARPARSED_H)
 #pragma error "The header files GrammarParsed.h and GrammarUnparsed.h may not be included in the same compilation unit!"
 #endif