added ifdef macros to phase.c