#define a phrase to be replaced by a single word

Sisyphus kalinabears@iinet.net.au
Sun Nov 21 02:04:00 GMT 2004


Eljay Love-Jensen wrote:
> Hi Rob / Sisyphus,
> 
> Try this...
> 
> #include <stdint.h>

Unfortunately there's no such header file with either MSVC++ 6.0 or 
MSVC++ 7.0 ... and the same is probably true of all other MS compilers, 
though the 2 just mentioned are the only ones that I can access.

Tried searching MSDN for 'stdint.h' but found nothing.

This seems to work however:

#ifndef _MSC_VER
#include <stdint.h>
#else
#define int64_t _int64
#endif

And then declare any long long values as being of type 'int64_t'.

Thanks for the pointer to stdint.h.

Cheers,
Rob



More information about the Gcc-help mailing list