• Eli Zaretskii's avatar
    Support dynamic loading of libjansson on MS-Windows · 2b8a1b76
    Eli Zaretskii authored
    * src/json.c [WINDOWSNT]: Define fn_* function pointers to jansson
    functions.
    (json_delete) [WINDOWSNT]: A wrapper around fn_json_delete, needed
    by json_decref.
    (init_json_functions) [WINDOWSNT]: New function.
    (Fjson_serialize, Fjson_insert, Fjson_parse_string)
    (Fjson_parse_buffer) [WINDOWSNT]: Call init_json_functions if
    needed, and record JSON in Vlibrary_cache.
    * src/emacs.c (main): Don't call init_json on WINDOWSNT.
    * src/w32fns.c (syms_of_w32fns): DEFSYM "json".
    
    * lisp/term/w32-win.el (dynamic-library-alist): Add JSON DLL to
    the list.
    
    * configure.ac (HAVE_JSON): Empty JSON_LIBS for MinGW.
    
    * nt/INSTALL.W64:
    * nt/INSTALL: Add information about libjansson.
    2b8a1b76
INSTALL.W64 8.49 KB