inttypes.h: Make usage for print formatting global

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-02-25 11:00:41 +00:00
1 parent 820bab3199
commit 9654c3fd2e
5 files changed
+8 -19

No files matched your search

+8
View File
@@ -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
-1
View File
@@ -54,7 +54,6 @@
#define MIN_GNUTLS_VERSION "3.3.0"
#include <inttypes.h>
#include <stdio.h>
#include <errno.h>
#include <gnutls/gnutls.h>
-6
View File
@@ -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)
-6
View File
@@ -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) {
-6
View File
@@ -30,12 +30,6 @@
#endif
#include <ctype.h>
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#else /* ! HAVE_INTTYPES_H */
#define PRIu32 "u"
#endif /* ! HAVE_INTTYPES_H */
#ifndef min
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif