comparison src/if_python3.c @ 2374:f414e5a4b40e vim73

Fix: "import termios" doesn't work with dynamically loaded Python. (James Vega)
author Bram Moolenaar <bram@vim.org>
date Thu, 22 Jul 2010 21:44:13 +0200
parents 06feaf4fe36a
children aeea25941392
comparison
equal deleted inserted replaced
2373:f149bb1cf5be 2374:f414e5a4b40e
68 68
69 static void init_structs(void); 69 static void init_structs(void);
70 70
71 #if defined(DYNAMIC_PYTHON3) 71 #if defined(DYNAMIC_PYTHON3)
72 72
73 #ifndef _WIN32 73 #ifndef WIN3264
74 #include <dlfcn.h> 74 #include <dlfcn.h>
75 #define FARPROC void* 75 #define FARPROC void*
76 #define HINSTANCE void* 76 #define HINSTANCE void*
77 #define load_dll(n) dlopen((n),RTLD_LAZY) 77 #define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL)
78 #define close_dll dlclose 78 #define close_dll dlclose
79 #define symbol_from_dll dlsym 79 #define symbol_from_dll dlsym
80 #else 80 #else
81 #define load_dll LoadLibrary 81 #define load_dll LoadLibrary
82 #define close_dll FreeLibrary 82 #define close_dll FreeLibrary