summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/ffmpeg/include/win/inttypes.h10
-rw-r--r--third_party/ffmpeg/include/win/stdint.h26
-rw-r--r--third_party/ffmpeg/using_ffmpeg.vsprops2
3 files changed, 37 insertions, 1 deletions
diff --git a/third_party/ffmpeg/include/win/inttypes.h b/third_party/ffmpeg/include/win/inttypes.h
new file mode 100644
index 0000000..8b7de6d
--- /dev/null
+++ b/third_party/ffmpeg/include/win/inttypes.h
@@ -0,0 +1,10 @@
+// Copyright (c) 2009 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.
+
+#ifndef THIRD_PARTY_FFMPEG_INCLUDE_WIN_INTTYPES_H_
+#define THIRD_PARTY_FFMPEG_INCLUDE_WIN_INTTYPES_H_
+
+#include "third_party/ffmpeg/include/win/stdint.h"
+
+#endif // THIRD_PARTY_FFMPEG_INCLUDE_WIN_INTTYPES_H_
diff --git a/third_party/ffmpeg/include/win/stdint.h b/third_party/ffmpeg/include/win/stdint.h
new file mode 100644
index 0000000..280bdb1
--- /dev/null
+++ b/third_party/ffmpeg/include/win/stdint.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2009 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.
+
+// FFmpeg is written in C99 and requires <stdint.h> and <inttypes.h>.
+// Since MSVC doesn't include these headers, we have to write our own version
+// to provide a compatibility layer between MSVC and the FFmpeg headers.
+
+#ifndef THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_
+#define THIRD_PARTY_FFMPEG_INCLUDE_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;
+
+#endif // THIRD_PARTY_FFMPEG_INCLUDE_WIN_STDINT_H_
diff --git a/third_party/ffmpeg/using_ffmpeg.vsprops b/third_party/ffmpeg/using_ffmpeg.vsprops
index ea674e2..e190f9f 100644
--- a/third_party/ffmpeg/using_ffmpeg.vsprops
+++ b/third_party/ffmpeg/using_ffmpeg.vsprops
@@ -6,7 +6,7 @@
>
<Tool
Name="VCCLCompilerTool"
- AdditionalIncludeDirectories="$(SolutionDir)..\third_party\ffmpeg\include"
+ AdditionalIncludeDirectories="$(SolutionDir)..\third_party\ffmpeg\include;$(SolutionDir)..\third_party\ffmpeg\include\win"
/>
<Tool
Name="VCLinkerTool"