34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
/*
|
|
* Copyright (c) 2014, Oculus VR, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef __NATIVE_TYPES_H
|
|
#define __NATIVE_TYPES_H
|
|
|
|
#if defined(__GNUC__) || defined(__GCCXML__) || defined(__SNC__) || defined(__S3E__)
|
|
#include <stdint.h>
|
|
#elif !defined(_STDINT_H) && !defined(_SN_STDINT_H) && !defined(_SYS_STDINT_H_) && !defined(_STDINT) && !defined(_MACHTYPES_H_) && !defined(_STDINT_H_)
|
|
typedef unsigned char uint8_t;
|
|
typedef unsigned short uint16_t;
|
|
typedef unsigned __int32 uint32_t;
|
|
typedef signed char int8_t;
|
|
typedef signed short int16_t;
|
|
typedef __int32 int32_t;
|
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
|
typedef unsigned __int64 uint64_t;
|
|
typedef signed __int64 int64_t;
|
|
#else
|
|
typedef unsigned long long int uint64_t;
|
|
typedef signed long long int64_t;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif
|