diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-05-26 17:37:48 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-05-26 17:37:48 +0400 |
commit | 16f52c1461f6ac698eea4a90f40406ecb83bf54c (patch) | |
tree | 04b424280e4be5f924f4c4f7ab44d7da7c3a098b | |
parent | 403ab0c013eaff67b332c917109b36a787c447f2 (diff) |
* include/inttypes.h: Change PTR definitions to int to align with the
stdint.h type definitions of intptr_t/uintptr_t.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/inttypes.h | 24 |
2 files changed, 17 insertions, 12 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index bcc97301d..f1c0245b8 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2010-05-26 Corinna Vinschen <corinna@vinschen.de> + * include/inttypes.h: Change PTR definitions to int to align with the + stdint.h type definitions of intptr_t/uintptr_t. + +2010-05-26 Corinna Vinschen <corinna@vinschen.de> + * fhandler.h (class fhandler_pty_master): Add master_thread member. * fhandler_tty.cc (fhandler_pty_master::close): Properly detach from master thread. diff --git a/winsup/cygwin/include/inttypes.h b/winsup/cygwin/include/inttypes.h index ff34678ed..b24037eb4 100644 --- a/winsup/cygwin/include/inttypes.h +++ b/winsup/cygwin/include/inttypes.h @@ -1,6 +1,6 @@ /* inttypes.h - fixed size integer types - Copyright 2003, 2009 Red Hat, Inc. + Copyright 2003, 2009, 2010 Red Hat, Inc. This file is part of Cygwin. @@ -33,7 +33,7 @@ details. */ #define PRIdFAST64 "lld" #define PRIdMAX "lld" -#define PRIdPTR "ld" +#define PRIdPTR "d" #define PRIi8 "i" #define PRIi16 "i" @@ -51,7 +51,7 @@ details. */ #define PRIiFAST64 "lli" #define PRIiMAX "lli" -#define PRIiPTR "li" +#define PRIiPTR "i" /* fprintf() macros for unsigned integers */ @@ -71,7 +71,7 @@ details. */ #define PRIoFAST64 "llo" #define PRIoMAX "llo" -#define PRIoPTR "lo" +#define PRIoPTR "o" #define PRIu8 "u" #define PRIu16 "u" @@ -89,7 +89,7 @@ details. */ #define PRIuFAST64 "llu" #define PRIuMAX "llu" -#define PRIuPTR "lu" +#define PRIuPTR "u" #define PRIx8 "x" #define PRIx16 "x" @@ -107,7 +107,7 @@ details. */ #define PRIxFAST64 "llx" #define PRIxMAX "llx" -#define PRIxPTR "lx" +#define PRIxPTR "x" #define PRIX8 "X" #define PRIX16 "X" @@ -125,7 +125,7 @@ details. */ #define PRIXFAST64 "llX" #define PRIXMAX "llX" -#define PRIXPTR "lX" +#define PRIXPTR "X" /* fscanf() macros for signed integers */ @@ -145,7 +145,7 @@ details. */ #define SCNdFAST64 "lld" #define SCNdMAX "lld" -#define SCNdPTR "ld" +#define SCNdPTR "d" #define SCNi8 "hhi" #define SCNi16 "hi" @@ -163,7 +163,7 @@ details. */ #define SCNiFAST64 "lli" #define SCNiMAX "lli" -#define SCNiPTR "li" +#define SCNiPTR "i" /* fscanf() macros for unsigned integers */ @@ -183,7 +183,7 @@ details. */ #define SCNoFAST64 "llo" #define SCNoMAX "llo" -#define SCNoPTR "lo" +#define SCNoPTR "o" #define SCNu8 "hhu" #define SCNu16 "hu" @@ -201,7 +201,7 @@ details. */ #define SCNuFAST64 "llu" #define SCNuMAX "llu" -#define SCNuPTR "lu" +#define SCNuPTR "u" #define SCNx8 "hhx" #define SCNx16 "hx" @@ -219,7 +219,7 @@ details. */ #define SCNxFAST64 "llx" #define SCNxMAX "llx" -#define SCNxPTR "lx" +#define SCNxPTR "x" #ifdef __cplusplus extern "C" { |