diff options
| author | Greg Hudson <ghudson@mit.edu> | 2012-08-09 18:05:50 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2012-09-11 01:14:31 -0400 |
| commit | 382a87cf344b002bf5660ed3f27799ed18c54948 (patch) | |
| tree | 55eb5a5e5c574775f6e55716cb735f50f3cc0c65 /src/include/k5-platform.h | |
| parent | 3b55b8aba850fa54a4d0c5017a91641538c16835 (diff) | |
| download | krb5-382a87cf344b002bf5660ed3f27799ed18c54948.tar.gz krb5-382a87cf344b002bf5660ed3f27799ed18c54948.tar.xz krb5-382a87cf344b002bf5660ed3f27799ed18c54948.zip | |
Add internal JSON encoding and decoding support
Add JSON support based loosely on Heimdal's heimbase code.
Diffstat (limited to 'src/include/k5-platform.h')
| -rw-r--r-- | src/include/k5-platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index c92729117..e4c339218 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -421,12 +421,18 @@ typedef struct { int error; unsigned char did_run; } k5_init_t; # endif # define INT64_TYPE int64_t # define UINT64_TYPE uint64_t +# define INT64_FMT PRId64 +# define UINT64_FMT PRIu64 #elif defined(_WIN32) # define INT64_TYPE signed __int64 # define UINT64_TYPE unsigned __int64 +# define INT64_FMT "I64d" +# define UINT64_FMT "I64u" #else /* not Windows, and neither stdint.h nor inttypes.h */ # define INT64_TYPE signed long long # define UINT64_TYPE unsigned long long +# define INT64_FMT "lld" +# define UINT64_FMT "llu" #endif #ifndef SIZE_MAX |
