This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: #define a phrase to be replaced by a single word


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]