Those are called preprocessor commands. In this case, they are being used to insure that the given header file doesn't get included more than once, to prevent multiple definition errors. To see what I mean, comment out all the lines starting with "#" except the include.
Much easier to use #pragma once though. Don't make a habit of using #ifndef because not only is it uglier code but it's not quite as fast compiling either.