you check for `"#ifdef"` but then below check for `"#ifndef "`.  Note the space.