Merge pull request #647 from ascent12/elf_visibility

ELF Visibility
This commit is contained in:
Drew DeVault 2018-02-18 21:49:23 -05:00 committed by GitHub
commit 868ad5af69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 403 additions and 8 deletions

View file

@ -83,4 +83,6 @@ void handle_tablet_pad_ring(struct libinput_event *event,
void handle_tablet_pad_strip(struct libinput_event *event,
struct libinput_device *device);
uint32_t usec_to_msec(uint64_t usec);
#endif

10
include/util/defs.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef UTIL_DEFS_H
#define UTIL_DEFS_H
#ifdef __GNUC__
#define WLR_API __attribute__((visibility("default")))
#else
#define WLR_API
#endif
#endif

View file

@ -23,6 +23,4 @@ void wlr_backend_destroy(struct wlr_backend *backend);
struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend);
struct wlr_renderer *wlr_backend_get_renderer(struct wlr_backend *backend);
uint32_t usec_to_msec(uint64_t usec);
#endif