1c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
2c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org// Use of this source code is governed by a BSD-style license that can be
3c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org// found in the LICENSE file. See the AUTHORS file for names of contributors.
4c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org
5c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org// MSVC didn't ship with this file until the 2010 version.
6c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org
7c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#ifndef STORAGE_LEVELDB_PORT_WIN_STDINT_H_
8c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#define STORAGE_LEVELDB_PORT_WIN_STDINT_H_
9c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org
10c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#if !defined(_MSC_VER)
11c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#error This file should only be included when compiling with MSVC.
12c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#endif
13c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org
14c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org// Define C99 equivalent types.
15c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef signed char           int8_t;
16c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef signed short          int16_t;
17c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef signed int            int32_t;
18c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef signed long long      int64_t;
19c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef unsigned char         uint8_t;
20c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef unsigned short        uint16_t;
21c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef unsigned int          uint32_t;
22c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.orgtypedef unsigned long long    uint64_t;
23c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org
24c50fe91cf36ed8e0281b9d3d338dfd80508d5a03jorlow@chromium.org#endif  // STORAGE_LEVELDB_PORT_WIN_STDINT_H_
25