Skip to content

Commit

Permalink
Merge pull request #684 from openvenues/fix_compilation_windows_11
Browse files Browse the repository at this point in the history
conditional include of strndup.h, fixes #682
  • Loading branch information
albarrentine authored Feb 1, 2025
2 parents 5d0b6de + 052d99d commit ee7aa9a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/expand.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
#include "token_types.h"
#include "transliterate.h"

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef HAVE_STRNDUP
#include "strndup.h"
#endif


#define DEFAULT_KEY_LEN 32

Expand Down
9 changes: 9 additions & 0 deletions src/numex.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

#include "log/log.h"

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef HAVE_STRNDUP
#include "strndup.h"
#endif


#define NUMEX_TABLE_SIGNATURE 0xBBBBBBBB

#define NUMEX_SETUP_ERROR "numex module not setup, call libpostal_setup() or numex_module_setup()\n"
Expand Down

0 comments on commit ee7aa9a

Please sign in to comment.