[fix] ifdef includes around stndup
This commit is contained in:
@@ -15,6 +15,14 @@
|
|||||||
#include "token_types.h"
|
#include "token_types.h"
|
||||||
#include "transliterate.h"
|
#include "transliterate.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_STRNDUP
|
||||||
|
#include "strndup.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define DEFAULT_KEY_LEN 32
|
#define DEFAULT_KEY_LEN 32
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
|
|
||||||
#include "log/log.h"
|
#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_TABLE_SIGNATURE 0xBBBBBBBB
|
||||||
|
|
||||||
#define NUMEX_SETUP_ERROR "numex module not setup, call libpostal_setup() or numex_module_setup()\n"
|
#define NUMEX_SETUP_ERROR "numex module not setup, call libpostal_setup() or numex_module_setup()\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user