Issue #334024 by klausi, catch, beejeebus, sun: Use const keyword to define constants instead of define().