title: Struct compiler problems in C
body: <p>The following can be included from a .cpp file and the compiler won't complain about it.</p>
  
  <pre><code>typedef struct _SomeName {
      char NameID[MaxSize];  
      UserId notUsed;
      UserInstance instance;
  
      bool operator==(const struct _SomeName&amp; rhs) const
      {
          return (strncmp(NameID, rhs.NameID, MaxSize) == 0);
      }
      bool operator!=(const struct _SomeName&amp; rhs) const { return !(*this == rhs); };
  } SomeName;
  </code></pre>
  
  <p>How do I rewrite the above so that it's possible to include it from a .c file ?</p>