Skip to content

Commit ddb4a4a

Browse files
committed
Include <stdint.h> unconditionally: it is in C99.
Both Autoconf and CMake define HAVE_STDINT_H if the header is present, which is always the case. Also remove a few other macros that are not used or not even defined.
1 parent 54b1b32 commit ddb4a4a

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

cmakeconfig.h.in

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
/* Define to 1 if you have the `getservent' function. */
5555
#cmakedefine HAVE_GETSERVENT 1
5656

57-
/* Define to 1 if you have the <inttypes.h> header file. */
58-
#cmakedefine HAVE_INTTYPES_H 1
59-
6057
/* Define to 1 if you have the `cap-ng' library (-lcap-ng). */
6158
#cmakedefine HAVE_LIBCAP_NG 1
6259

@@ -66,9 +63,6 @@
6663
/* Define to 1 if you have the `rpc' library (-lrpc). */
6764
#cmakedefine HAVE_LIBRPC 1
6865

69-
/* Define to 1 if you have the <memory.h> header file. */
70-
#cmakedefine HAVE_MEMORY_H 1
71-
7266
/* Define to 1 if you have the <net/if.h> header file. */
7367
#cmakedefine HAVE_NET_IF_H 1
7468

@@ -162,18 +156,6 @@
162156
/* Define to 1 if you have the <rpc/rpc.h> header file. */
163157
#cmakedefine HAVE_RPC_RPC_H 1
164158

165-
/* Define to 1 if you have the <stdint.h> header file. */
166-
#cmakedefine HAVE_STDINT_H 1
167-
168-
/* Define to 1 if you have the <stdlib.h> header file. */
169-
#cmakedefine HAVE_STDLIB_H 1
170-
171-
/* Define to 1 if you have the <strings.h> header file. */
172-
#cmakedefine HAVE_STRINGS_H 1
173-
174-
/* Define to 1 if you have the <string.h> header file. */
175-
#cmakedefine HAVE_STRING_H 1
176-
177159
/* Define to 1 if you have the `strlcat' function. */
178160
#cmakedefine HAVE_STRLCAT 1
179161

@@ -186,18 +168,9 @@
186168
/* Define to 1 if the system has the type `struct ether_addr'. */
187169
#cmakedefine HAVE_STRUCT_ETHER_ADDR 1
188170

189-
/* Define to 1 if you have the <sys/stat.h> header file. */
190-
#cmakedefine HAVE_SYS_STAT_H 1
191-
192-
/* Define to 1 if you have the <sys/types.h> header file. */
193-
#cmakedefine HAVE_SYS_TYPES_H 1
194-
195171
/* Define to 1 if the system has the type `uintptr_t'. */
196172
#cmakedefine HAVE_UINTPTR_T 1
197173

198-
/* Define to 1 if you have the <unistd.h> header file. */
199-
#cmakedefine HAVE_UNISTD_H 1
200-
201174
/* Define to 1 if you have the `vfork' function. */
202175
#cmakedefine HAVE_VFORK 1
203176

interface.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
#include "funcattrs.h"
3030

3131
#include <stdarg.h>
32-
33-
#if HAVE_STDINT_H
3432
#include <stdint.h>
35-
#endif
3633

3734
#ifndef HAVE_STRLCAT
3835
extern size_t strlcat(char *, const char *, size_t);

0 commit comments

Comments
 (0)