Regroup pragma statements in one declaration into ofConstants.h

Fix #2532, Fix #2526