Use #define WL_HIDE_DEPRECATED to avoid deprecated warnings for wl_buffer

dev
Kristian Høgsberg 11 years ago
parent 85c40f2d85
commit 3c17933de8
  1. 1
      clients/nested.c
  2. 1
      src/compositor.c
  3. 2
      src/compositor.h
  4. 1
      src/log.c
  5. 1
      src/shell.c

@ -40,6 +40,7 @@
#include <cairo-gl.h> #include <cairo-gl.h>
#include <wayland-client.h> #include <wayland-client.h>
#define WL_HIDE_DEPRECATED
#include <wayland-server.h> #include <wayland-server.h>
#include "window.h" #include "window.h"

@ -52,7 +52,6 @@
#include <libunwind.h> #include <libunwind.h>
#endif #endif
#include <wayland-server.h>
#include "compositor.h" #include "compositor.h"
#include "subsurface-server-protocol.h" #include "subsurface-server-protocol.h"
#include "../shared/os-compatibility.h" #include "../shared/os-compatibility.h"

@ -30,6 +30,8 @@ extern "C" {
#include <pixman.h> #include <pixman.h>
#include <xkbcommon/xkbcommon.h> #include <xkbcommon/xkbcommon.h>
#define WL_HIDE_DEPRECATED
#include <wayland-server.h> #include <wayland-server.h>
#include "version.h" #include "version.h"

@ -29,7 +29,6 @@
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <wayland-server.h>
#include <wayland-util.h> #include <wayland-util.h>
#include "compositor.h" #include "compositor.h"

@ -34,7 +34,6 @@
#include <math.h> #include <math.h>
#include <sys/types.h> #include <sys/types.h>
#include <wayland-server.h>
#include "compositor.h" #include "compositor.h"
#include "desktop-shell-server-protocol.h" #include "desktop-shell-server-protocol.h"
#include "input-method-server-protocol.h" #include "input-method-server-protocol.h"

Loading…
Cancel
Save