mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-27 17:17:09 +03:00
inttypes.h: Make usage for print formatting global
This commit is contained in:
1 parent
820bab3199
commit
9654c3fd2e
5 files changed
+8
-19
No files matched your search
@@ -35,6 +35,14 @@
|
||||
# include <assert.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_INTTYPES_H
|
||||
#include <inttypes.h>
|
||||
#else /* ! HAVE_INTTYPES_H */
|
||||
#ifndef PRIx32
|
||||
#define PRIx32 "x"
|
||||
#endif /* ! PRIx32 */
|
||||
#endif /* ! HAVE_INTTYPES_H */
|
||||
|
||||
/* By default without either configured, these need to be set */
|
||||
#ifndef COAP_SERVER_SUPPORT
|
||||
#ifndef COAP_CLIENT_SUPPORT
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
|
||||
#define MIN_GNUTLS_VERSION "3.3.0"
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <gnutls/gnutls.h>
|
||||
|
||||
@@ -71,12 +71,6 @@
|
||||
#endif /* ESPIDF_VERSION && CONFIG_MBEDTLS_DEBUG */
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_INTTYPES_H
|
||||
#include <inttypes.h>
|
||||
#else /* ! HAVE_INTTYPES_H */
|
||||
#define PRIx32 "x"
|
||||
#endif /* ! HAVE_INTTYPES_H */
|
||||
|
||||
#define mbedtls_malloc(a) malloc(a)
|
||||
#define mbedtls_realloc(a,b) realloc(a,b)
|
||||
#define mbedtls_strdup(a) strdup(a)
|
||||
|
||||
@@ -27,12 +27,6 @@
|
||||
#endif /* COAP_EPOLL_SUPPORT */
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_INTTYPES_H
|
||||
#include <inttypes.h>
|
||||
#else /* ! HAVE_INTTYPES_H */
|
||||
#define PRIu32 "u"
|
||||
#endif /* ! HAVE_INTTYPES_H */
|
||||
|
||||
void
|
||||
coap_session_set_ack_timeout(coap_session_t *session, coap_fixed_point_t value) {
|
||||
if (value.integer_part > 0 && value.fractional_part < 1000) {
|
||||
|
||||
Reference in new issue
Block a user