Differences From Artifact [36d94b6a4d]:
- File src/of_asprintf.m — part of check-in [c5beed7277] at 2020-05-16 16:46:42 on branch trunk — Do not require snprintf to return expected length (user: js, size: 16808) [annotate] [blame] [check-ins using]
To Artifact [cd42320784]:
- File
src/of_asprintf.m
— part of check-in
[ecca609079]
at
2020-05-16 17:17:52
on branch trunk
— Don't use %I on Windows
Older versions only understand I64. So only use I64 where appropriate
and drop it entirely where not. (user: js, size: 16873) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
302 303 304 305 306 307 308 | #endif ctx->lengthModifier = LENGTH_MODIFIER_J; break; case 'z': #if defined(OF_WINDOWS) | > | | > | | | 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 | #endif ctx->lengthModifier = LENGTH_MODIFIER_J; break; case 'z': #if defined(OF_WINDOWS) if (sizeof(size_t) == 8) if (!appendSubformat(ctx, "I64", 3)) return false; #elif defined(_NEWLIB_VERSION) if (!appendSubformat(ctx, "l", 1)) return false; #else if (!appendSubformat(ctx, ctx->format + ctx->i, 1)) return false; #endif ctx->lengthModifier = LENGTH_MODIFIER_Z; break; case 't': #if defined(OF_WINDOWS) if (sizeof(ptrdiff_t) == 8) if (!appendSubformat(ctx, "I64", 3)) return false; #elif defined(_NEWLIB_VERSION) if (!appendSubformat(ctx, "l", 1)) return false; #else if (!appendSubformat(ctx, ctx->format + ctx->i, 1)) return false; #endif |
︙ | ︙ |