wrapxkb.h 880 B

123456789101112131415161718192021222324
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/x11/private/wrapxkb.h
  3. // Purpose: Private header wrapping X11/XKBlib.h inclusion.
  4. // Author: Vadim Zeitlin
  5. // Created: 2012-05-07
  6. // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _X11_PRIVATE_WRAPXKB_H_
  10. #define _X11_PRIVATE_WRAPXKB_H_
  11. #ifdef HAVE_X11_XKBLIB_H
  12. /* under HP-UX and Solaris 2.6, at least, XKBlib.h defines structures with
  13. * field named "explicit" - which is, of course, an error for a C++
  14. * compiler. To be on the safe side, just redefine it everywhere. */
  15. #define explicit __wx_explicit
  16. #include <X11/XKBlib.h>
  17. #undef explicit
  18. #endif // HAVE_X11_XKBLIB_H
  19. #endif // _X11_PRIVATE_WRAPXKB_H_