When checking that my script compiles with the latest AutoIT beta, I found that the new "Constants.au3" include (used for other includes such as "File.au3") now has a Global Const $MB_IConstop = 16 ; Stop-sign icon which was already being set in one of my existing includes called "ExtMsgBox.au3" (to the same value).
I'd like my script to be compilable in both the production and beta AutoIT with the least changes to my script or the UDFs it includes. The only idea i have at the moment is to comment out "Global Const $MB_IConstop = 16 ; Stop-sign icon" from "ExtMsgBox.au3" and to replace the production "Constants.au3" with the new one from the beta. Is there a better way please? Is there way to somehow check if "$MB_IConstop" is already defined and only set it if it isn't? Is there a compiler option that will effectively "comment out" $MB_IConstop if the AutoIT version is greater than the Production version? Thanks!