title: typedef'd struct not found by header
body: <p>I'm sure its something very foolish, but I'm stumped:</p>
  
  <p>I have a typedef'd struct declared in one header:</p>
  
  <p><code>Firstheader.h</code></p>
  
  <pre><code>typedef struct Pin
  { 
      uint8_t a;
      uint8_t b;
  } PinStruct;
  </code></pre>
  
  <p>I then want to use this typedef'd struct in a function declaration in another header:</p>
  
  <p><code>Secondheader.h</code></p>
  
  <pre><code>#include "Firstheader.h"
  
  void foo (const PinStruct *myPin);
  </code></pre>
  
  <p>Despite the typedef'd struct being clearly defined in the first header, and including the first header in the second header, the compiler complains that the "identifier PinStruct is undefined". Someone please smack me and tell me what I'm missing.</p>
  
  <p>EDIT: Thanks for the comments guys. The compiler is marking the function declaration in the second header as the source of the error. The exact error is just as I wrote: Error[Pe020]: identifier "PinStruct" is undefined.  </p>
  
  <p>What's strange is if I copy the struct definition into the <code>Secondheader.h</code> header file, the compiler immediately complians about a re-definition of the struct. So it knows its there.</p>