What effect does #undef have on header files?

I was hoping someone could explain the purpose of #undef in the mispelling problem set? I read an explanation, i just wanted to know now if the #undef effects the definitions defined in sys/resourc...