Re: [dev] [sbase] 64-bit type for split

From: Szabolcs Nagy <nsz_AT_port70.net>
Date: Wed, 12 Jun 2013 12:14:24 +0200

* Galos, David <galosd83_AT_students.rowan.edu> [2013-06-11 13:10:37 -0500]:
> Right, but '-ansi -pedantic' is strictly C89. GCC doesn't complain,
> but I could imagine there being trepidation around using a C99 header
> in a C89 environment (where it is not required).
>
> 2013/6/11 Thorsten Glaser <tg_AT_mirbsd.de>:
> > Galos, David dixit:
> >
> >>On GNU systems stdint.h still provides uint64_t, but I have no idea
> >>how portable this is.
> >
> > <stdint.h> is C99.

if you want c89 compatibility then indeed you
should not include stdint.h, but

long long was supported in practice before c99
(c++ didn't have it until recently, but usually
it is supported as an extension)

i think you should only avoid long long if you
are specifically targetting a system without
long long support
Received on Wed Jun 12 2013 - 12:14:24 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 12 2013 - 12:24:05 CEST