The code was incorrectly using #ifndef on a value that was always defined to a value of either 0 or 1.