xmpsdk-integer-typedef-x64 Unconditionally use <stdint.h> to define known bit-width...
authorSteve Robbins <smr@debian.org>
Tue, 3 Sep 2019 03:07:58 +0000 (22:07 -0500)
committerPino Toscano <pino@debian.org>
Sat, 28 Jan 2023 10:45:47 +0000 (11:45 +0100)
Gbp-Pq: Name xmpsdk-integer-typedef-x64.patch

xmpsdk/include/XMP_Const.h

index 031618884b98060b22868d06e4f983bbfb5eb95a..631a2530b04ffee83b8185ee6a9e9a576d15fc09 100644 (file)
@@ -13,9 +13,7 @@
 
    #include <stddef.h>
 
-#if XMP_MacBuild       // ! No stdint.h on Windows and some UNIXes.
     #include <stdint.h>
-#endif
 
 #if __cplusplus
 extern "C" {
@@ -34,7 +32,6 @@ extern "C" {
 // 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.
 
-#if XMP_MacBuild
 
     typedef int8_t   XMP_Int8;
     typedef int16_t  XMP_Int16;
@@ -46,19 +43,6 @@ extern "C" {
     typedef uint32_t XMP_Uns32;
     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;