From 3c513a66fceaa052cc0e2d818b7fd048b79c5a4d Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 1 Dec 2022 19:10:46 +0100 Subject: [PATCH] Fixed a warning. --- README.md | 2 +- example/hash-map/src/main.c | 1 - libhashset/include/hash_map.h | 3 ++- libhashset/include/hash_set.h | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7abecf9..4a12080 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ int main(void) API Reference ============= -This section describes the LibHashSet programming interface. The functions for managing *hash sets* are declared in ``, whereas the functions for managing to *hash maps* are declared and ``. +This section describes the LibHashSet programming interface. The functions for managing *hash sets* are declared in ``, whereas the functions for managing to *hash maps* are declared in ``. LibHashSet supports sets and maps containing elements of different integral types. For each element type, separate functions are provided. The functions for `uint16_t`, `uint32_t` and `uint64_t` can be distinguished by the suffix `…16`, `…32` and `…64`, respectively. In the following, the functions are described in their "generic" form. diff --git a/example/hash-map/src/main.c b/example/hash-map/src/main.c index bf82acf..d7065ca 100644 --- a/example/hash-map/src/main.c +++ b/example/hash-map/src/main.c @@ -4,7 +4,6 @@ /******************************************************************************/ #include -#include #include #include #include "input.h" diff --git a/libhashset/include/hash_map.h b/libhashset/include/hash_map.h index 22276a5..16700c2 100644 --- a/libhashset/include/hash_map.h +++ b/libhashset/include/hash_map.h @@ -23,8 +23,9 @@ extern "C" { #endif -#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_ERRNO_T_DEFINED) +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_LIBHASHSET_ERRNO_DEFINED) typedef int errno_t; +#define _LIBHASHSET_ERRNO_DEFINED 1 #endif /* ------------------------------------------------- */ diff --git a/libhashset/include/hash_set.h b/libhashset/include/hash_set.h index 29f1eef..1d62606 100644 --- a/libhashset/include/hash_set.h +++ b/libhashset/include/hash_set.h @@ -23,8 +23,9 @@ extern "C" { #endif -#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_ERRNO_T_DEFINED) +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_LIBHASHSET_ERRNO_DEFINED) typedef int errno_t; +#define _LIBHASHSET_ERRNO_DEFINED 1 #endif /* ------------------------------------------------- */