Make inlined methods accessible for other compilers than gcc or clang.
Hello.
I have a project to create Wayland applications step by step using the Free Pascal compiler: https://github.com/fredvs/wayland-pascal
Sadly, some inlined methods of libwayland-client.so are not accessible for the fpc compiler. The trick to solve it is to create a wrapper library of the problematic methods:
// wayland_wrapper.c
// compile with: gcc -fPIC -shared -o libwayland_wrapper.so wayland_wrapper.c -lwayland-client
#include <wayland-client.h>
// Wrapper for wl_display_get_registry
struct wl_registry* my_wl_display_get_registry(struct wl_display* display) {
return wl_display_get_registry(display);
}
// Wrapper for wl_registry_add_listener
int my_wl_registry_add_listener(struct wl_registry* registry,
const struct wl_registry_listener* listener,
void* data) {
return wl_registry_add_listener(registry, listener, data);
}
Could you make those inlined mehods directly accessible from libwayland-client.so for other compilers than gcc or clang? It would be great and make life much easier.
Thanks.