diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 5a8496d639be7098f29613c6b16457cf2e4122a6..579f14399074ca95c3b77502db81ec231a16f899 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -11,10 +11,10 @@
  * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
  */
 
-#ifndef PUGIXML_VERSION
 // Define version macro; evaluates to major * 1000 + minor * 10 + patch so that it's safe to use in less-than comparisons
 // Note: pugixml used major * 100 + minor * 10 + patch format up until 1.9 (which had version identifier 190); starting from pugixml 1.10, the minor version number is two digits
-#	define PUGIXML_VERSION 1110
+#ifndef PUGIXML_VERSION
+#	define PUGIXML_VERSION 1120 // 1.12
 #endif
 
 // Include user configuration file (this can define various configuration macros)
diff --git a/tests/test_version.cpp b/tests/test_version.cpp
index 11f8a7f37036faa82b1e8b1e8d7be7f6b311e32c..a19b59b811b7b5751a5d0dc216d90c68c2b5a28c 100644
--- a/tests/test_version.cpp
+++ b/tests/test_version.cpp
@@ -1,5 +1,5 @@
 #include "../src/pugixml.hpp"
 
-#if PUGIXML_VERSION != 1110
+#if PUGIXML_VERSION != 1120
 #error Unexpected pugixml version
 #endif