diff options
| author | 2013-10-02 19:58:16 +0200 | |
|---|---|---|
| committer | 2013-10-02 19:58:16 +0200 | |
| commit | 1729b43830d98af3f1b5edc457e3b7c14e637cab (patch) | |
| tree | 0e6e16574dce270a6c9f5c17935c3646096cbc12 /tools/irecovery.c | |
| parent | f50f53d787623724b4d12834f0bd954403f84029 (diff) | |
| download | libirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.gz libirecovery-1729b43830d98af3f1b5edc457e3b7c14e637cab.tar.bz2 | |
irecovery: use macro for %lld so we can use %I64d for win32
Diffstat (limited to 'tools/irecovery.c')
| -rw-r--r-- | tools/irecovery.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c index 7a093d3..a8c85eb 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c | |||
| @@ -31,6 +31,9 @@ | |||
| 31 | #ifndef sleep | 31 | #ifndef sleep |
| 32 | #define sleep(n) Sleep(1000 * n) | 32 | #define sleep(n) Sleep(1000 * n) |
| 33 | #endif | 33 | #endif |
| 34 | #define _FMT_lld "%I64d" | ||
| 35 | #else | ||
| 36 | #define _FMT_lld "%lld" | ||
| 34 | #endif | 37 | #endif |
| 35 | 38 | ||
| 36 | #define FILE_HISTORY_PATH ".irecovery" | 39 | #define FILE_HISTORY_PATH ".irecovery" |
| @@ -144,7 +147,7 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne | |||
| 144 | 147 | ||
| 145 | ret = irecv_get_ecid(client, &ecid); | 148 | ret = irecv_get_ecid(client, &ecid); |
| 146 | if(ret == IRECV_E_SUCCESS) { | 149 | if(ret == IRECV_E_SUCCESS) { |
| 147 | printf("ECID: %lld\n", ecid); | 150 | printf("ECID: " _FMT_lld "\n", ecid); |
| 148 | } | 151 | } |
| 149 | 152 | ||
| 150 | ret = irecv_get_srnm(client, srnm); | 153 | ret = irecv_get_srnm(client, srnm); |
