mirror of
https://github.com/json-c/json-c.git
synced 2026-03-22 06:29:06 +08:00
json_object_get_int64. Binary compatibility preserved.
Eric Haszlakiewicz, EHASZLA at transunion com
Rui Miguel Silva Seabra, rms at 1407 dot org
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@56 327403b1-1117-474d-bef2-5cb71233fd97
22 lines
357 B
C
22 lines
357 B
C
|
|
#ifndef _json_inttypes_h_
|
|
#define _json_inttypes_h_
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1600
|
|
|
|
/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
|
|
typedef __int64 int64_t;
|
|
#define PRId64 "I64d"
|
|
#define SCNd64 "I64d"
|
|
|
|
#else
|
|
|
|
#ifdef HAVE_INTTYPES_H
|
|
#include <inttypes.h>
|
|
#endif
|
|
/* inttypes.h includes stdint.h */
|
|
|
|
#endif
|
|
|
|
#endif
|