aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>2025-02-05 22:41:33 +0200
committerDaniel Stone <daniels@collabora.com>2025-02-06 10:18:17 +0000
commit1ab6b693b16e1d9734496fe60c8a6ed277e4dec3 (patch)
tree979763e11855974c7d65abbd795d01ba32b3044f /src
parentAlso use [[deprecated]] when compiling with at least C++14 (diff)
downloadwayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar.gz
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar.bz2
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar.lz
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar.xz
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.tar.zst
wayland-1ab6b693b16e1d9734496fe60c8a6ed277e4dec3.zip
Forward declarate timespec struct
The `timespec` struct is defined in `time.h` header but only if `_POSIX_C_SOURCE` is set or when using the C11 standard. Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Diffstat (limited to 'src')
-rw-r--r--src/wayland-client-core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wayland-client-core.h b/src/wayland-client-core.h
index 157da43..a70d4f0 100644
--- a/src/wayland-client-core.h
+++ b/src/wayland-client-core.h
@@ -27,7 +27,6 @@
#define WAYLAND_CLIENT_CORE_H
#include <stdint.h>
-#include <time.h>
#include "wayland-util.h"
#include "wayland-version.h"
@@ -35,6 +34,8 @@
extern "C" {
#endif
+struct timespec;
+
/** \class wl_proxy
*
* \brief Represents a protocol object on the client side.