If I remember correctly, at least some versions of Visual Studio have an off_t that is 32 bit even on a 64 bit machine:
https://developercommunity.visualstudio.com/content/problem/308714/in-c-header-systypesh-off-t-is-defined-as-32-bit-s.html The acid test is to go with the default off_t and create a .g file that is too large to work with without a 64 bit off_t. (I don't recall offhand which operations fail - I would expect "ls" to since it's supposed to find everything.) On Thu, Mar 19, 2020 at 6:15 AM Daniel Roßberg <[email protected]> wrote: > Hi, > > What's the background behind the OFF_T_SIZE_MISMATCH stuff in common.h? > Is this relevant for MS Visual Studio only? > > I came across this while investigating a strange behavior in VS2019. > There I saw different sizes of off_t in BRL-CAD, because of the typedefs > there, and the C library, which doesn't know about common.h. > > For VS2019, it looks like these lines could simply be omitted. > > Regards, > Daniel > _______________________________________________ > BRL-CAD Developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/brlcad-devel >
_______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
