[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
- [PATCH] OS/2 patches, KO Myung-Hun, 2014/11/30
- [PATCH 01/21] gnulib-tool: disable a symbolic link on OS/2, KO Myung-Hun, 2014/11/30
- [PATCH 03/21] git-version-gen: remove CR as well, KO Myung-Hun, 2014/11/30
- [PATCH 02/21] gnulib-tool: recognize x:* as an absolute path, KO Myung-Hun, 2014/11/30
- [PATCH 04/21] stdint: typedef gl_intptr_t and gl_uintptr_t correctly on OS/2 kLIBC,
KO Myung-Hun <=
- [PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 06/21] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/11/30
- [PATCH 07/21] find_executable: port to EMX, KO Myung-Hun, 2014/11/30
- [PATCH 08/21] get_shared_library_fullname: port to EMX, KO Myung-Hun, 2014/11/30