> You can still use it.
Ok this is the code that seems to work for readline5 too on most compilers (in case other people have this problem too):
//rl_free compability for readline5.
#if RL_VERSION_MAJOR < 6
#ifdef _WIN32
t_free get_rl_free()
{
HINSTANCE hDLL = LoadLibraryW(L"readline5");
return (t_free)GetProcAddress((HMODULE)hDLL, "xfree");
}
#endif
void rl_free(void *p)
{
#ifdef _WIN32
static t_free free = get_rl_free();
#endif
free(p);
}
#endif
#ifdef _WIN32
#include <windows.h>
typedef void(*t_free)(void*);
{
HINSTANCE hDLL = LoadLibraryW(L"readline5");
return (t_free)GetProcAddress((HMODULE)hDLL, "xfree");
}
#endif
void rl_free(void *p)
{
#ifdef _WIN32
static t_free free = get_rl_free();
#endif
free(p);
}
#endif
Any thought about the other issue about non-asci characters in filenames on windows? Or should i file a seperate bugreport?
_______________________________________________ Bug-readline mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-readline
