use define instead of static int for TOTAL_MODES to avoid duplicated definition problem
use define instead of static int for TOTAL_MODES to avoid duplicated definition problem

tumluliu/mmspa,tumluliu/mmspa,tumluliu/mmspa,tumluliu/mmspa