I need some globals in my Objective-C application. For that purpose, I've created class Globals (that inherits NSObject) and put readonly properties in it. I've also declared some constants, like this:
imports, etc.
.
.
.
#ifndef GLOBALS_H
#define GLOBALS_H
const int DIFFICULTY_CUSTOM = -1;
const int other_constants ...
#endif
.
.
.
interface, etc.
But when I try to compile it, I get linker error: "Duplicate symbol DIFFICULTY_CUSTOM". Why is that happening, should ifndef prefent it?