[fix] ifdef includes around stndup

This commit is contained in:
Al
2025-01-31 16:14:33 -05:00
parent 5d0b6dece5
commit 052d99de74
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"