Differences From Artifact [9e4f7d3917]:
- File
src/of_asprintf.m
— part of check-in
[2f5af58573]
at
2014-02-13 23:26:17
on branch trunk
— Use -std=c11 instead of -std=gnu11
Not using -std=gnu11 means _GNU_SOURCE does not get defined anymore,
therefore this commit also adds the required feature defines for glibc.Additionally, this adds of_strdup in macros.h, as strdup is an
extension. (user: js, size: 13554) [annotate] [blame] [check-ins using]
To Artifact [b1b058c113]:
- File
src/of_asprintf.m
— part of check-in
[1bf25c9a98]
at
2014-04-26 01:02:42
on branch trunk
— of_asprintf: Generalize some #ifdefs
All workarounds that were for Wii and PSP are caused by newlib, so it's
better to check for newlib instead. (user: js, size: 13527) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
197 198 199 200 201 202 203 | } break; case 'j': #if defined(_WIN32) if (!appendSubformat(ctx, "I64", 3)) return false; | | | | | 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | } break; case 'j': #if defined(_WIN32) if (!appendSubformat(ctx, "I64", 3)) return false; #elif defined(_NEWLIB_VERSION) if (!appendSubformat(ctx, "ll", 2)) return false; #else if (!appendSubformat(ctx, ctx->format + ctx->i, 1)) return false; #endif ctx->lengthModifier = LENGTH_MODIFIER_J; break; case 'z': #if defined(_WIN32) if (!appendSubformat(ctx, "I", 1)) 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(_WIN32) if (!appendSubformat(ctx, "I", 1)) 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 |
︙ | ︙ |