*** empty log message ***
diff --git a/SAX2.c b/SAX2.c
index 3a674c7..7cf5f06 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -1958,7 +1958,7 @@
 	     */
 	    if (dup == NULL)
 	        dup = xmlStrndup(value, valueend - value);
-#if LIBXML_VALID_ENABLED
+#ifdef LIBXML_VALID_ENABLED
 	    if (xmlValidateNCName(dup, 1) != 0) {
 	        xmlErrValid(ctxt, XML_DTD_XMLID_VALUE,
 		      "xml:id : attribute value %s is not an NCName\n",