Anyone know a good way in C++ of defining numeric variables in system-independent manner such as:
32-bit integer
64-bit real
16-bit unsigned integer,
etc.

... purpose is reading and writing binary data to file so that, for example, 32-bit Windows user will always be able to read the file I wrote with 64-bit Linux, and vice versa.