Imported Upstream version 1.4
[deb_x265.git] / source / compat / msvc / stdint.h
CommitLineData
72b9787e
JB
1#pragma once
2
3#ifndef _MSC_VER
4#error "Use this header only with Microsoft Visual C++ compilers!"
5#endif
6
7#include <crtdefs.h> // for intptr_t
8#if !defined(UINT64_MAX)
9#include <limits.h>
10#define UINT64_MAX _UI64_MAX
11#endif
12
13/* a minimal set of C99 types for use with MSVC (VC9) */
14
15typedef signed char int8_t;
16typedef short int int16_t;
17typedef int int32_t;
18typedef __int64 int64_t;
19
20typedef unsigned char uint8_t;
21typedef unsigned short int uint16_t;
22typedef unsigned int uint32_t;
23typedef unsigned __int64 uint64_t;
24