-// A bunch of %rename directives generated by ./distrib/build_renamers.py
+// A bunch of %rename directives generated by BuildRenamers in config.py
// in order to remove the wx prefix from all global scope names.
-#ifndef SWIGXML
+#ifndef BUILDING_RENAMERS
%rename(CAL_SUNDAY_FIRST) wxCAL_SUNDAY_FIRST;
%rename(CAL_MONDAY_FIRST) wxCAL_MONDAY_FIRST;