NativeTypes.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #ifndef __NATIVE_TYPES_H
  11. #define __NATIVE_TYPES_H
  12. #if defined(__GNUC__) || defined(__GCCXML__) || defined(__SNC__) || defined(__S3E__)
  13. #include <stdint.h>
  14. #elif !defined(_STDINT_H) && !defined(_SN_STDINT_H) && !defined(_SYS_STDINT_H_) && !defined(_STDINT) && !defined(_MACHTYPES_H_) && !defined(_STDINT_H_)
  15. typedef unsigned char uint8_t;
  16. typedef unsigned short uint16_t;
  17. typedef unsigned __int32 uint32_t;
  18. typedef signed char int8_t;
  19. typedef signed short int16_t;
  20. typedef __int32 int32_t;
  21. #if defined(_MSC_VER) && _MSC_VER < 1300
  22. typedef unsigned __int64 uint64_t;
  23. typedef signed __int64 int64_t;
  24. #else
  25. typedef unsigned long long int uint64_t;
  26. typedef signed long long int64_t;
  27. #endif
  28. #endif
  29. #endif
粤ICP备19079148号