Index: src/of_asprintf.m ================================================================== --- src/of_asprintf.m +++ src/of_asprintf.m @@ -24,10 +24,12 @@ #include #import "OFString.h" #import "OFAutoreleasePool.h" #import "asprintf.h" + +#import "macros.h" #define MAX_SUBFORMAT_LEN 64 struct context { const char *format; @@ -234,10 +236,19 @@ ctx->i += 2; ctx->lengthModifier = LENGTH_MODIFIER_LL; } else ctx->i--; + break; +#endif +#ifdef OF_IOS + case 'q': /* iOS uses this for PRI?64 */ + if (!appendSubformat(ctx, ctx->format + ctx->i, 1)) + return false; + + ctx->lengthModifier = LENGTH_MODIFIER_LL; + break; #endif default: ctx->i--;