Ignore:
Timestamp:
Aug 24, 2013, 8:49:27 PM (8 years ago)
Author:
jordan
Message:

add windows-friendly definitions for PRIu64, PRId64, PRIu32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r14077 r14181  
    5656
    5757#ifndef PRId64
    58  #define PRId64 "lld"
     58 #ifdef WIN32
     59  #define PRId64 "I64"
     60 #else
     61  #define PRId64 "lld"
     62 #endif
    5963#endif
     64
    6065#ifndef PRIu64
    61  #define PRIu64 "llu"
     66 #ifdef WIN32
     67  #define PRIu64 "uI64"
     68 #else
     69  #define PRIu64 "llu"
     70 #endif
    6271#endif
     72
    6373#ifndef PRIu32
    64  #define PRIu32 "lu"
     74 #ifdef WIN32
     75  #define PRIu32 "uI32"
     76 #else
     77  #define PRIu32 "lu"
     78 #endif
    6579#endif
    6680
Note: See TracChangeset for help on using the changeset viewer.