xmpsdk: Unconditionally use <stdint.h>

to define known bit-width types.
main
Steve Robbins 6 years ago committed by Rosen Penev
parent d874fc4dd8
commit 527dc9f666

@ -12,10 +12,7 @@
#include "XMP_Environment.h" #include "XMP_Environment.h"
#include <stddef.h> #include <stddef.h>
#if XMP_MacBuild // ! No stdint.h on Windows and some UNIXes.
#include <stdint.h> #include <stdint.h>
#endif
#if __cplusplus #if __cplusplus
extern "C" { extern "C" {
@ -34,8 +31,6 @@ extern "C" {
// case only the declarations of the XMP_... types needs to change, not all of the uses. These // case only the declarations of the XMP_... types needs to change, not all of the uses. These
// types are used where fixed sizes are required in order to have a known ABI for a DLL build. // types are used where fixed sizes are required in order to have a known ABI for a DLL build.
#if XMP_MacBuild
typedef int8_t XMP_Int8; typedef int8_t XMP_Int8;
typedef int16_t XMP_Int16; typedef int16_t XMP_Int16;
typedef int32_t XMP_Int32; typedef int32_t XMP_Int32;
@ -46,20 +41,6 @@ extern "C" {
typedef uint32_t XMP_Uns32; typedef uint32_t XMP_Uns32;
typedef uint64_t XMP_Uns64; typedef uint64_t XMP_Uns64;
#else
typedef signed char XMP_Int8;
typedef signed short XMP_Int16;
typedef signed long XMP_Int32;
typedef signed long long XMP_Int64;
typedef unsigned char XMP_Uns8;
typedef unsigned short XMP_Uns16;
typedef unsigned long XMP_Uns32;
typedef unsigned long long XMP_Uns64;
#endif
typedef XMP_Uns8 XMP_Bool; typedef XMP_Uns8 XMP_Bool;
/// An "ABI safe" pointer to the internal part of an XMP object. Use to pass an XMP object across /// An "ABI safe" pointer to the internal part of an XMP object. Use to pass an XMP object across

Loading…
Cancel
Save