Add condtional compilation in C code