Defining machine-independent datatypes in C++
<p>Is there a way to do this?</p>

<pre><code>#if sizeof(int) == 4
typedef unsigned int Integer32;
#else
typedef unsigned long Integer32;
#endif
</code></pre>

<p>or do you have to just #define integer size and compile different headers in?</p>
