/platform/external/webkit/WebCore/bridge/npruntime_internal.h

https://github.com/aharish/totoro-gb-opensource-update2 · C Header · 51 lines · 22 code · 3 blank · 26 comment · 0 complexity · 0c7d7a2d13dea071d0789312e99544c6 MD5 · raw file

  1. /*
  2. * Copyright (C) 2007-2008 Collabora Ltd. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free
  16. * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. *
  18. *
  19. * This is a internal include header for npapi.h
  20. *
  21. * Some of the #defines which are in X11 headers conflict with type and enum
  22. * names in JavaScriptCore and WebCore
  23. * This header #undefs those defines to fix the conflicts
  24. * If you need to include npapi.h or npruntime.h when building on X11,
  25. * include this file instead of the actual npapi.h or npruntime.h
  26. */
  27. #include "npapi.h"
  28. #include "npfunctions.h"
  29. #include "npruntime.h"
  30. #ifdef XP_UNIX
  31. #include <X11/Xresource.h>
  32. #undef None
  33. #undef Above
  34. #undef Below
  35. #undef Auto
  36. #undef Complex
  37. #undef Status
  38. #undef CursorShape
  39. #undef FocusIn
  40. #undef FocusOut
  41. #undef KeyPress
  42. #undef KeyRelease
  43. #undef Unsorted
  44. #undef Bool
  45. #undef FontChange
  46. #undef GrayScale
  47. #undef NormalState
  48. #endif