use ifdefined-else for backward compatibility check. Closes: #1414
use ifdefined-else for backward compatibility check. Closes: #1414

kmuto/review,takahashim/review,kmuto/review,takahashim/review,kmuto/review