[quote name='pulpfist' timestamp='1318031148' post='4870312']
I think you should use either
#ifndef ?
#define ?
...
#endif
or
#pragma once
but not both,
Why not both? I use both all the time. GCC at one point didn't have good support for it, but now I believe having #pragma once and #ifndef checks gives you the best of both worlds for the vast majority of situations. More than likely unless you already know it will break your project having both, you will probably be fine using both.
[/quote]
I don't think there is a problem in using both but why use both when they do the same thing?