46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
|
|
/*
|
|||
|
|
* Copyright (C) 2019 YY Inc. All rights reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an "AS IS" BASIS,
|
|||
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||
|
|
* See the License for the specific language governing permissions and
|
|||
|
|
* limitations under the License.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef __X_STDINT_H
|
|||
|
|
#define __X_STDINT_H
|
|||
|
|
|
|||
|
|
|
|||
|
|
#if defined(_MSC_VER) && (_MSC_VER < 1800)
|
|||
|
|
// copy from rapidjson/msinttypes/stdint.h
|
|||
|
|
#if (_MSC_VER < 1300)
|
|||
|
|
typedef signed char int8_t;
|
|||
|
|
typedef signed short int16_t;
|
|||
|
|
typedef signed int int32_t;
|
|||
|
|
typedef unsigned char uint8_t;
|
|||
|
|
typedef unsigned short uint16_t;
|
|||
|
|
typedef unsigned int uint32_t;
|
|||
|
|
#else
|
|||
|
|
typedef signed __int8 int8_t;
|
|||
|
|
typedef signed __int16 int16_t;
|
|||
|
|
typedef signed __int32 int32_t;
|
|||
|
|
typedef unsigned __int8 uint8_t;
|
|||
|
|
typedef unsigned __int16 uint16_t;
|
|||
|
|
typedef unsigned __int32 uint32_t;
|
|||
|
|
#endif
|
|||
|
|
typedef signed __int64 int64_t;
|
|||
|
|
typedef unsigned __int64 uint64_t;
|
|||
|
|
#else
|
|||
|
|
#include <stdint.h>
|
|||
|
|
#endif
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif
|