X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/c70f9935358d885d063ed0112827c5d8506d1f9d..640c141b2e6c59c7b9876c27ab7abadec7723c45:/StringPool.cpp?ds=sidebyside diff --git a/StringPool.cpp b/StringPool.cpp index e28bdff..9a0a1c4 100644 --- a/StringPool.cpp +++ b/StringPool.cpp @@ -8,6 +8,14 @@ #include +#if HAVE_PRINTF_ZD +# define ZD "%zd" +# define ZD_TYPE ssize_t +#else +# define ZD "%ld" +# define ZD_TYPE long +#endif + #define NOISY(x) //x void strcpy16_htod(uint16_t* dst, const uint16_t* src) @@ -30,7 +38,7 @@ void printStringPool(const ResStringPool* pool) str = String8(pool->stringAt(s, &len)).string(); } - printf("String #%d: %s\n", s, str); + printf("String #" ZD ": %s\n", (ZD_TYPE) s, str); } }