h.g. muller wrote:
No. You do not want to check against _MSC_VER for the format
specification. What matters is linking against the msvcrt, not the
compiler used. You *could* check the _MSC_VER in order to prefer
"%lld" when you know you'll be linking with non-buggy versions. But
since they are back-compatible to support the %I64 syntax, it isn't
necessary.
You DO want to check against _MSC_VER for the data type itself. When
using MS compilers, it needs to be __int64 of some flavor, and long
long for non-MS compilers. Linking with the msvcrt is irrelevant for
the data type itself.
Perhaps I misunderstand the function of the makefile.ms then? I
thought that that was only included for doing a command-line compile
with MSVC. And I assumed that when doing that, you would _always_ link
with msvcrt. Is this wrong?
I explained the problem already. Fix it however you wish.
_______________________________________________
Bug-XBoard mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-xboard