title: Redefinition of enumeration for objC like in java
body: <p>In java this is possible:</p>
  
  <pre><code>enum VisitSetting {
    NOT_VISITED,
    QUERIED_VISITED,
    CONFIRMED_VISITED
  }
  
  enum ExcludeSetting {
    NONE,
    QUERIED_VISITED_AND_CONFIRMED_VISITED,
    CONFIRMED_VISITED
  }
  </code></pre>
  
  <p>Note that CONFIRMED_VISITED is in VisitSetting as well in ExcludeSetting.</p>
  
  <p>I would like something simulair in objective c but then I get <code>Redefinition of enumerator 'CONFIRMED_VISITED'</code></p>
  
  <p>This is the implementation:</p>
  
  <pre><code>#ifndef RouteApp_IGConstants_h
  #define RouteApp_IGConstants_h
  
  typedef enum {
      NOT_VISITED = 0,
      QUERIED_VISITED,
      CONFIRMED_VISITED
  } VisitSetting;
  
  typedef enum {
      NONE = 0,
      QUERIED_VISITED_AND_CONFIRMED_VISITED,
      CONFIRMED_VISITED
  } ExcludeSetting;
  
  
  
  #endif
  </code></pre>
  
  <p>How can this be fixed?
  I would prefer without renaming CONFIRMED_VISITED.</p>