| 1 |
// |
| 2 |
// SPDX-License-Identifier: BSD-3-Clause |
| 3 |
// Copyright Contributors to the OpenEXR Project. |
| 4 |
// |
| 5 |
|
| 6 |
// |
| 7 |
// 64-bit integer types |
| 8 |
// |
| 9 |
// Deprecated, use int64_t/uint64_t instead. |
| 10 |
// |
| 11 |
|
| 12 |
#ifndef INCLUDED_IMATH_INT64_H |
| 13 |
#define INCLUDED_IMATH_INT64_H |
| 14 |
|
| 15 |
#include "ImathNamespace.h" |
| 16 |
#include <limits.h> |
| 17 |
|
| 18 |
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER |
| 19 |
|
| 20 |
#if (defined _WIN32 || defined _WIN64) && _MSC_VER >= 1300 |
| 21 |
/// Int64 - unsigned 64-bit integer |
| 22 |
IMATH_DEPRECATED("use uint64_t") |
| 23 |
typedef unsigned __int64 Int64; |
| 24 |
/// SInt64 - signed 64-bit integer |
| 25 |
IMATH_DEPRECATED("use sint64_t") |
| 26 |
typedef __int64 SInt64; |
| 27 |
#elif ULONG_MAX == 18446744073709551615LU |
| 28 |
/// Int64 - unsigned 64-bit integer |
| 29 |
IMATH_DEPRECATED("use uint64_t") |
| 30 |
typedef long unsigned int Int64; |
| 31 |
/// SInt64 - signed 64-bit integer |
| 32 |
IMATH_DEPRECATED("use sint64_t") |
| 33 |
typedef long int SInt64; |
| 34 |
#else |
| 35 |
/// Int64 - unsigned 64-bit integer |
| 36 |
IMATH_DEPRECATED("use uint64_t") |
| 37 |
typedef long long unsigned int Int64; |
| 38 |
/// SInt64 - signed 64-bit integer |
| 39 |
IMATH_DEPRECATED("use sint64_t") |
| 40 |
typedef long long int SInt64; |
| 41 |
#endif |
| 42 |
|
| 43 |
IMATH_INTERNAL_NAMESPACE_HEADER_EXIT |
| 44 |
|
| 45 |
#endif // INCLUDED_IMATH_INT64_H |