initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
22
libs/wxWidgets-3.3.1/include/wx/gtk/private/power.h
Normal file
22
libs/wxWidgets-3.3.1/include/wx/gtk/private/power.h
Normal file
@@ -0,0 +1,22 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/gtk/private/power.h
|
||||
// Purpose: Private GTK-specific power management-related declarations.
|
||||
// Author: Vadim Zeitlin
|
||||
// Created: 2025-02-06
|
||||
// Copyright: (c) 2025 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GTK_PRIVATE_POWER_H_
|
||||
#define _WX_GTK_PRIVATE_POWER_H_
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
// Power events are only supported under Unix with glib >= 2.26 as this is when
|
||||
// GDBus support was added and GUnixFDList is only available in 2.30, so just
|
||||
// test for it to keep things simple.
|
||||
#if defined(__UNIX__) && GLIB_CHECK_VERSION(2, 30, 0)
|
||||
#define wxHAS_GLIB_POWER_SUPPORT
|
||||
#endif
|
||||
|
||||
#endif // _WX_GTK_PRIVATE_POWER_H_
|
||||
Reference in New Issue
Block a user