Overview
| Comment: | Don't use %I on Windows
Older versions only understand I64. So only use I64 where appropriate |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
ecca60907923b5caf1f2dca3181870f0 |
| User & Date: | js on 2020-05-16 17:17:52 |
| Other Links: | manifest | tags |
Context
|
2020-05-16
| ||
| 17:33 | OFFileURLHandler: Weakly link CreateHardLinkW() (check-in: f803e7fa63 user: js tags: trunk) | |
| 17:17 | Don't use %I on Windows (check-in: ecca609079 user: js tags: trunk) | |
| 16:46 | Do not require snprintf to return expected length (check-in: c5beed7277 user: js tags: trunk) | |
Changes
Modified src/of_asprintf.m from [36d94b6a4d] to [cd42320784].
| ︙ | ︙ | |||
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 |
| ︙ | ︙ |