Added a PRIsize_t constant to help printing size_t without having to cast them to long long explicitely everywhere.
This commit was SVN r17626.
Этот коммит содержится в:
родитель
2c142ae0a4
Коммит
6ea23283a8
@ -309,5 +309,17 @@ typedef unsigned long long uintptr_t;
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef PRIsize_t
|
||||
# if defined(ACCEPT_C99)
|
||||
# define PRIsize_t "zu"
|
||||
# elif SIZEOF_SIZE_T == SIZEOF_LONG
|
||||
# define PRIsize_t "lu"
|
||||
# elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
|
||||
# define PRIsize_t "llu"
|
||||
# elif SIZEOF_SIZE_T == SIZEOF_INT
|
||||
# define PRIsize_t "u"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif /* OPAL_STDINT_H */
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user