summaryrefslogtreecommitdiff
path: root/third_party/yasm/source/config/win/stdint.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-06 21:43:50 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-07 04:54:45 +0000
commit0e5d892fe86d7c2527d8f7b7ac2c5aa8fc77a7be (patch)
treed47e7f2c57e4c2231efb6ed197d695c3537859dd /third_party/yasm/source/config/win/stdint.h
parent4bb4029b1523aa1dbd328fee6ac66385c5fa5b48 (diff)
downloadpdfium-0e5d892fe86d7c2527d8f7b7ac2c5aa8fc77a7be.tar.xz
Use libjpeg-turbo instead of our own copy of libjpeg.
Check out libjpeg-turbo via DEPS. Also checkout yasm via DEPS and copy some yasm build files from Chromium. BUG=chromium:541704,pdfium:389 Change-Id: Ic7af415f002a3ca2acd9223ed3474dedf3930b32 Reviewed-on: https://pdfium-review.googlesource.com/3470 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'third_party/yasm/source/config/win/stdint.h')
-rw-r--r--third_party/yasm/source/config/win/stdint.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/third_party/yasm/source/config/win/stdint.h b/third_party/yasm/source/config/win/stdint.h
new file mode 100644
index 0000000000..d77df92638
--- /dev/null
+++ b/third_party/yasm/source/config/win/stdint.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// YASM is written in C99 and requires <stdint.h> and <inttypes.h>.
+
+#ifndef THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_
+#define THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_
+
+#if !defined(_MSC_VER)
+#error This file should only be included when compiling with MSVC.
+#endif
+
+// Define C99 equivalent types.
+typedef signed char int8_t;
+typedef signed short int16_t;
+typedef signed int int32_t;
+typedef signed long long int64_t;
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long long uint64_t;
+
+// Define the C99 INT64_C macro that is used for declaring 64-bit literals.
+// Technically, these should only be definied when __STDC_CONSTANT_MACROS
+// is defined.
+#define INT64_C(value) value##LL
+#define UINT64_C(value) value##ULL
+
+#endif // THIRD_PARTY_YASM_SOURCE_CONFIG_WIN_STDINT_H_