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>
This commit is contained in:
Vlad Zahorodnii 2025-02-05 22:41:33 +02:00 committed by Daniel Stone
parent afd498b6f5
commit 1ab6b693b1

View file

@ -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.