]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/types: Drop #ifdefary for __{SIZE,PTRDIFF}_TYPE__
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Jun 2023 20:36:54 +0000 (21:36 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Jul 2023 14:20:04 +0000 (15:20 +0100)
All supported compilers have these types.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/include/xen/types.h

index 6aba80500aafad21bf4d337bdea5b57ea5fa0281..8b22a02eeaa4361bdb7d895c355bd38d939396db 100644 (file)
@@ -5,18 +5,11 @@
 
 #include <asm/types.h>
 
-#if defined(__SIZE_TYPE__)
 typedef __SIZE_TYPE__ size_t;
-#else
-typedef unsigned long size_t;
-#endif
+
 typedef signed long ssize_t;
 
-#if defined(__PTRDIFF_TYPE__)
 typedef __PTRDIFF_TYPE__ ptrdiff_t;
-#else
-typedef signed long ptrdiff_t;
-#endif
 
 #define BITS_TO_LONGS(bits) \
     (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)