summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@webkeks.org>2011-06-26 02:45:51 +0200
committerJonathan Schleifer <js@webkeks.org>2011-06-26 02:45:51 +0200
commit3145488379da274ea762147c5bc1f8e23b071b76 (patch)
treef621fd1b6bc76ed2ee0a191090aa0d71a091c0f5
parent40baf42024d5a903a758b3b7ec903348afa6fd06 (diff)
Handle q length modifier in of_asprintf on iOS.
-rw-r--r--src/of_asprintf.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/of_asprintf.m b/src/of_asprintf.m
index 58b49894..d90afaaf 100644
--- a/src/of_asprintf.m
+++ b/src/of_asprintf.m
@@ -27,6 +27,8 @@
#import "OFAutoreleasePool.h"
#import "asprintf.h"
+#import "macros.h"
+
#define MAX_SUBFMT_LEN 64
struct context {
@@ -234,6 +236,15 @@ state_format_length_modifier(struct context *ctx)
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--;