Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions levenshtein.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright Juan Miguel Cejuela (@juanmirocks - http://juanmi.rocks)
*
* Last update: 2017-08-27
* Last update: 2021-03-21
* Version: 2.0.2
* Home: https://github.com/juanmirocks/Levenshtein-MySQL-UDF
*
Expand Down Expand Up @@ -51,16 +51,24 @@ typedef unsigned long long ulonglong;
typedef long long longlong;
#endif /*__WIN__*/
#else
#include "mysql_version.h"
#if MYSQL_VERSION_ID > 80000
#include <mysql.h>
typedef bool my_bool;
typedef long long longlong;
#define HAVE_DLOPEN 1
#else
#include <my_global.h>
#include <my_sys.h>
#include <mysql.h>
#endif
#if defined(MYSQL_SERVER)
#include <m_string.h>
#else
/* when compiled as standalone */
#include <string.h>
#endif
#endif
#include <mysql.h>
#include <ctype.h>

#ifdef HAVE_DLOPEN
Expand Down