Skip to content

Commit

Permalink
Issue #526 Some gldns files need stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
wtoorop committed Aug 22, 2022
1 parent 3a71bd3 commit 9c076ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -262,6 +262,7 @@ check_include_file(inttypes.h HAVE_INTTYPES_H)
check_include_file(limits.h HAVE_LIMITS_H)
check_include_file(sys/limits.h HAVE_SYS_LIMITS_H)
check_include_file(stdarg.h HAVE_STDARG_H)
check_include_file(stddef.h HAVE_STDDEF_H)
check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(stdio.h HAVE_STDIO_H)
check_include_file(stdlib.h HAVE_STDLIB_H)
Expand Down
12 changes: 8 additions & 4 deletions cmake/include/cmakeconfig.h.in
Expand Up @@ -15,6 +15,7 @@
#cmakedefine HAVE_LIMITS_H 1
#cmakedefine HAVE_SYS_LIMITS_H 1
#cmakedefine HAVE_STDARG_H 1
#cmakedefine HAVE_STDDEF_H 1
#cmakedefine HAVE_STDINT_H 1
#cmakedefine HAVE_STDIO_H 1
#cmakedefine HAVE_STDLIB_H 1
Expand Down Expand Up @@ -241,6 +242,10 @@
# define FD_SETSIZE 1024
# endif

#ifdef __cplusplus
extern "C" {
#endif

/* the version of the windows API enabled */
# ifndef WINVER
# define WINVER 0x0600 // 0x0502
Expand Down Expand Up @@ -307,12 +312,11 @@
#include <string.h>
#endif

#ifdef __cplusplus
extern "C" {
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#if STDC_HEADERS
#include <stdlib.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif

Expand Down

0 comments on commit 9c076ca

Please sign in to comment.