Does Objective-C support #elifdef? September 5, 2023 by Tarik You can simply write: #elif defined X Which should be compatible with all ANSI-C compatible compilers.