← Back to team overview

cuneiform team mailing list archive

Re: Patch to build in MSVC++ 6 and pack mode in cuneiform-cli

 

On Tue, Dec 30, 2008 at 5:01 PM, Jussi Pakkanen <jpakkane@xxxxxxxxx> wrote:

> This would still give errors on every non-windows platform because
> WORD would be undefined.
>
> If it should be defined for all compilers except MSVC 6, should it not
> be something like
>
> #if _MSC_VER < 1201
> /* Do nothing */
> #else
> typedef uint16_t WORD;
> #endif

In fact, the definition of WORD should be found in windows.h, right?
So this define would only be needed on non-windows platforms, whereas
windows ones should instead just include windows.h or some other
system header that has these. Is this correct? I have very litte
Windows coding experience.



Follow ups

References