build: remove HAVE_DPMS_PROTOTYPES, Single use and assumed due to another var being set

This commit is contained in:
sithlord48 2025-06-13 22:03:26 -04:00 committed by Nick Bolton
parent da5a2088c8
commit 60a148ce68
3 changed files with 0 additions and 24 deletions

View file

@ -194,11 +194,6 @@ macro(configure_xorg_libs)
check_include_files("${XKBlib}" HAVE_X11_XKBLIB_H) check_include_files("${XKBlib}" HAVE_X11_XKBLIB_H)
check_include_files("X11/extensions/XInput2.h" HAVE_XI2) check_include_files("X11/extensions/XInput2.h" HAVE_XI2)
if(HAVE_X11_EXTENSIONS_DPMS_H)
# Assume that function prototypes declared, when include exists.
set(HAVE_DPMS_PROTOTYPES 1)
endif()
if(NOT HAVE_X11_XKBLIB_H) if(NOT HAVE_X11_XKBLIB_H)
message(FATAL_ERROR "Missing header: " ${XKBlib}) message(FATAL_ERROR "Missing header: " ${XKBlib})
endif() endif()

View file

@ -7,9 +7,6 @@
// clang-format off // clang-format off
/* Define if the <X11/extensions/dpms.h> header file declares function prototypes. */
#cmakedefine HAVE_DPMS_PROTOTYPES @HAVE_DPMS_PROTOTYPES@
/* Define if you have the `inet_aton` function. */ /* Define if you have the `inet_aton` function. */
#cmakedefine HAVE_INET_ATON @HAVE_INET_ATON@ #cmakedefine HAVE_INET_ATON @HAVE_INET_ATON@

View file

@ -25,22 +25,6 @@ extern "C"
{ {
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <X11/extensions/dpms.h> #include <X11/extensions/dpms.h>
#if !HAVE_DPMS_PROTOTYPES
#undef DPMSModeOn
#undef DPMSModeStandby
#undef DPMSModeSuspend
#undef DPMSModeOff
#define DPMSModeOn 0
#define DPMSModeStandby 1
#define DPMSModeSuspend 2
#define DPMSModeOff 3
extern Bool DPMSQueryExtension(Display *, int *, int *);
extern Bool DPMSCapable(Display *);
extern Status DPMSEnable(Display *);
extern Status DPMSDisable(Display *);
extern Status DPMSForceLevel(Display *, CARD16);
extern Status DPMSInfo(Display *, CARD16 *, BOOL *);
#endif
} }
#endif #endif