summaryrefslogtreecommitdiff
path: root/json-c/src/json_inttypes.h
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2012-05-01 16:05:17 +0200
committerMichał Cichoń <michcic@gmail.com>2012-05-01 16:05:17 +0200
commit30b6a77f86a35dab16b3bf9b815e089657fc6890 (patch)
treee428795ca6f70e5eae78e236ec7feb0a986abf8b /json-c/src/json_inttypes.h
parentc8da87b5718f4637beedbab5ab2ebf24fa1b2039 (diff)
downloadpianobar-windows-build-30b6a77f86a35dab16b3bf9b815e089657fc6890.tar.gz
pianobar-windows-build-30b6a77f86a35dab16b3bf9b815e089657fc6890.tar.bz2
pianobar-windows-build-30b6a77f86a35dab16b3bf9b815e089657fc6890.zip
Update build environment to comply with latest pianobar requirements.
Replace gcrypt with blowfist library - this will allow us to keep pianobar.exe portable.
Diffstat (limited to 'json-c/src/json_inttypes.h')
-rw-r--r--json-c/src/json_inttypes.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/json-c/src/json_inttypes.h b/json-c/src/json_inttypes.h
new file mode 100644
index 0000000..55e5279
--- /dev/null
+++ b/json-c/src/json_inttypes.h
@@ -0,0 +1,32 @@
+
+#ifndef _json_inttypes_h_
+#define _json_inttypes_h_
+
+#include "json_config.h"
+
+#if defined(_MSC_VER) && _MSC_VER < 1700
+
+/* Anything less than Visual Studio C++ 10 is missing stdint.h and inttypes.h */
+/*
+typedef __int32 int32_t;
+#define INT32_MIN ((int32_t)_I32_MIN)
+#define INT32_MAX ((int32_t)_I32_MAX)
+typedef __int64 int64_t;
+#define INT64_MIN ((int64_t)_I64_MIN)
+#define INT64_MAX ((int64_t)_I64_MAX)
+*/
+#define PRId64 "I64d"
+#define SCNd64 "I64d"
+
+#include <stdint.h>
+
+#else
+
+#ifdef JSON_C_HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+/* inttypes.h includes stdint.h */
+
+#endif
+
+#endif