| 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 | |
| 28 | #include "npapi.h" |
| 29 | #include "npfunctions.h" |
| 30 | #include "npruntime.h" |
| 31 | |
| 32 | #if defined(MOZ_X11) |
| 33 | #include <X11/Xresource.h> |
| 34 | |
| 35 | #undef None |
| 36 | #undef Above |
| 37 | #undef Below |
| 38 | #undef Auto |
| 39 | #undef Complex |
| 40 | #undef Status |
| 41 | #undef CursorShape |
| 42 | #undef FocusIn |
| 43 | #undef FocusOut |
| 44 | #undef KeyPress |
| 45 | #undef KeyRelease |
| 46 | #undef Unsorted |
| 47 | #undef Bool |
| 48 | #undef FontChange |
| 49 | #undef GrayScale |
| 50 | #undef NormalState |
| 51 | #undef True |
| 52 | #undef False |
| 53 | #undef Success |
| 54 | #undef Expose |
| 55 | #endif |
| 56 | |