Merge pull request #684 from openvenues/fix_compilation_windows_11

conditional include of strndup.h, fixes #682
This commit is contained in:
Al B
2025-01-31 21:02:35 -05:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@@ -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

View File

@@ -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"