bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 04/21] stdint: typedef gl_intptr_t and gl_uintptr_t correctly on


From: KO Myung-Hun
Subject: [PATCH 04/21] stdint: typedef gl_intptr_t and gl_uintptr_t correctly on OS/2 kLIBC
Date: Sun, 30 Nov 2014 13:20:06 +0900

intptr_t and uintptr_t are defined as int and unsigned int on OS/2
kLIBC, respectively.

This fixes a type conflict of sbrk() on OS/2 kLIBC.

* lib/stdint.in.h (gl_intptr_t, gl_uintptr_t): typedef to int and
unsigned int on OS/2 kLIBC, repsectively.
---
 lib/stdint.in.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/stdint.in.h b/lib/stdint.in.h
index 98ee423..7b1ef16 100644
--- a/lib/stdint.in.h
+++ b/lib/stdint.in.h
@@ -290,8 +290,13 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
 
 #undef intptr_t
 #undef uintptr_t
+#ifndef __KLIBC__
 typedef long int gl_intptr_t;
 typedef unsigned long int gl_uintptr_t;
+#else
+typedef int gl_intptr_t;
+typedef unsigned int gl_uintptr_t;
+#endif
 #define intptr_t gl_intptr_t
 #define uintptr_t gl_uintptr_t
 
-- 
1.8.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]