Re: [AD] windows compile

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-06-15, Chris <chris.kcat@xxxxxxxxxx> wrote:
> On Thursday 15 June 2006 11:14, Matthew Leverton wrote:
> > The attached patch does just that. Tested on MSVC6 and MSVC8. The
> > build is then successful for both.
> 
> +#define int64_t __int64
> 
> I think it may be better to define that to signed __int64 explicitly. Because 
> with that code, the following would work:
> unsigned int64_t var;
> when it shouldn't.

Good idea.

> 
> Or better yet, make them typedefs instead of defines.

#defines cause less problems in case you come up against another library
that has their own definitions of int64_t (or whatever).  Then you can
just use #undef int64_t before #include'ing the other library's headers.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/