| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #ifndef VPX_VPX_VPX_INTEGER_H_ |
| 12 | #define VPX_VPX_VPX_INTEGER_H_ |
| 13 |
| 14 | /* get ptrdiff_t, size_t, wchar_t, NULL */ |
| 15 | #include <stddef.h> // IWYU pragma: export |
| 16 |
| 17 | #if defined(_MSC_VER) |
| 18 | #define VPX_FORCE_INLINE __forceinline |
| 19 | #define VPX_INLINE __inline |
| 20 | #else |
| 21 | #define VPX_FORCE_INLINE __inline__ __attribute__((always_inline)) |
| 22 | // TODO(jbb): Allow a way to force inline off for older compilers. |
| 23 | #define VPX_INLINE inline |
| 24 | #endif |
| 25 |
| 26 | /* Assume platforms have the C99 standard integer types. */ |
| 27 |
| 28 | #if defined(__cplusplus) |
| 29 | #if !defined(__STDC_FORMAT_MACROS) |
| 30 | #define __STDC_FORMAT_MACROS |
| 31 | #endif |
| 32 | #if !defined(__STDC_LIMIT_MACROS) |
| 33 | #define __STDC_LIMIT_MACROS |
| 34 | #endif |
| 35 | #endif // __cplusplus |
| 36 |
| 37 | #include <inttypes.h> // IWYU pragma: export |
| 38 | #include <stdint.h> // IWYU pragma: export |
| 39 |
| 40 | #endif // VPX_VPX_VPX_INTEGER_H_ |
| 41 |