Changeset 6200


Ignore:
Timestamp:
Jun 16, 2008, 4:03:06 AM (13 years ago)
Author:
charles
Message:

ensure JSON_int_t is an int64_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/JSON_parser.h

    r5969 r6200  
    1818#endif
    1919
    20 /* Determine the integer type use to parse non-floating point numbers */
    21 #if __STDC_VERSION__ >= 199901L || HAVE_LONG_LONG == 1
    22 typedef long long JSON_int_t;
    23 #define JSON_PARSER_INTEGER_SSCANF_TOKEN "%lld"
    24 #define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%lld"
    25 #else
    26 typedef long JSON_int_t;
    27 #define JSON_PARSER_INTEGER_SSCANF_TOKEN "%ld"
    28 #define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%ld"
    29 #endif
     20#include <inttypes.h>
     21typedef int64_t JSON_int_t;
     22#define JSON_PARSER_INTEGER_SSCANF_TOKEN "%"PRId64
     23#define JSON_PARSER_INTEGER_SPRINTF_TOKEN "%"PRId64
    3024
    3125
Note: See TracChangeset for help on using the changeset viewer.