#ifndef SHARED_H #define SHARED_H #include #include #include #include #ifdef _WIN32 #include #include typedef HMODULE lib_handle_t; #else #include typedef void* lib_handle_t; #endif extern lib_handle_t handle; void *load_function(const char *func_name); char *compact_json(const char *json); char *get_load_error(void); lib_handle_t load_library(const char *path); void close_library(lib_handle_t handle); #endif