6 Sep
2016
6 Sep
'16
6:48 p.m.
[STL]
It's unconditionally: #define _FPOSOFF(fp) ((long long)(fp))
[Gareth Sylvester-Bradley]
These days I'm sure that's true, but formerly don't I remember on 32-bit platforms it could be something like this? typedef struct fpos_t { unsigned int lopart; int hipart; } fpos_t; #define _FPOSOFF(fp) ((long)(fp).lopart) How long in the tooth am I?
I've never seen that. VS 2012+ have the long long cast. In VS 2010 (and going back to 2005, IIRC), it was: #define _FPOSOFF(fp) ((long)(fp)) which was hostile to large files, which was why we changed it. STL