diff options
author | Moritz <moritz.weichert@t-online.de> | 2017-11-30 15:00:36 +0100 |
---|---|---|
committer | Moritz <moritz.weichert@t-online.de> | 2017-11-30 18:01:13 +0100 |
commit | cef6d7549131cfee7cd60ada0388a2766335c70a (patch) | |
tree | 6a6278ee1b8ad6a38d16471d07202f67a776353c /examples | |
parent | 5d7eb438d9dde68ce185daf977a0c27a1398bbc9 (diff) |
Moved os-compatibility and added header
* Moved os-compatibility.c to util
* Added header under util
* Removed static since it isn't needed (i think so)
* Adjusted meson.build to include lib_wlr
Improved some codestyle
* Added guard to os-compatibility.h
* Fixed typo in include statment
Adjusted Guard
* Changed guard to _WLR_UTIL_OS_COMPATIBILITY
Diffstat (limited to 'examples')
-rw-r--r-- | examples/meson.build | 3 | ||||
-rw-r--r-- | examples/screenshot.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/meson.build b/examples/meson.build index 89fc6211..af0f5a18 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -29,5 +29,6 @@ executable( executable( 'screenshot', 'screenshot.c', - dependencies: [wayland_client, wlr_protos], + dependencies: [wayland_client, wlr_protos, wlroots], + link_with: lib_shared, ) diff --git a/examples/screenshot.c b/examples/screenshot.c index fc7f3cb3..a887d1d7 100644 --- a/examples/screenshot.c +++ b/examples/screenshot.c @@ -35,7 +35,7 @@ #include <limits.h> #include <sys/param.h> #include <screenshooter-client-protocol.h> -#include "../backend/wayland/os-compatibility.c" +#include "util/os-compatibility.h" static struct wl_shm *shm = NULL; static struct orbital_screenshooter *screenshooter = NULL; |