aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/native/x11/Xmisc.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-06 10:02:03 +0100
committerSven Gothel <[email protected]>2015-03-06 10:02:03 +0100
commit27ebb38b9ffd3cc8f4ee3b97509b0f32ef2680aa (patch)
tree5a50541643e21ae1a3d49d65c405cdefa4b64569 /src/nativewindow/native/x11/Xmisc.h
parenteced1d4e45772a862d649e3cd7b500c6bc1643a1 (diff)
Bug 1135 - Cleanup: Fix native code Warning
Diffstat (limited to 'src/nativewindow/native/x11/Xmisc.h')
-rw-r--r--src/nativewindow/native/x11/Xmisc.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nativewindow/native/x11/Xmisc.h b/src/nativewindow/native/x11/Xmisc.h
index 91f2ac5d9..d8868f802 100644
--- a/src/nativewindow/native/x11/Xmisc.h
+++ b/src/nativewindow/native/x11/Xmisc.h
@@ -39,4 +39,30 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#if !defined(__sun_obsolete) && !defined(_HPUX)
+#include <X11/extensions/xf86vmode.h>
+#else
+Bool XF86VidModeGetGammaRampSize(
+ Display* /* dpy */,
+ int /* screen */,
+ int* /* size */
+);
+Bool XF86VidModeGetGammaRamp(
+ Display* /* dpy */,
+ int /* screen */,
+ int /* size */,
+ unsigned short* /* red array */,
+ unsigned short* /* green array */,
+ unsigned short* /* blue array */
+);
+Bool XF86VidModeSetGammaRamp(
+ Display* /* dpy */,
+ int /* screen */,
+ int /* size */,
+ unsigned short* /* red array */,
+ unsigned short* /* green array */,
+ unsigned short* /* blue array */
+);
+#endif /* defined(__sun_obsolete) || defined(_HPUX) */
+
#endif /* Xmisc_h */