summaryrefslogtreecommitdiff
path: root/dom/events/TextComposition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/events/TextComposition.cpp')
-rw-r--r--dom/events/TextComposition.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/dom/events/TextComposition.cpp b/dom/events/TextComposition.cpp
index 3b3dc6505b..bd7ebbc468 100644
--- a/dom/events/TextComposition.cpp
+++ b/dom/events/TextComposition.cpp
@@ -21,8 +21,21 @@
#include "mozilla/Unused.h"
#include "mozilla/dom/TabParent.h"
+#ifdef XP_MACOSX
+// Some defiens will be conflict with OSX SDK
+#define TextRange _TextRange
+#define TextRangeArray _TextRangeArray
+#define Comment _Comment
+#endif
+
#include "nsPluginInstanceOwner.h"
+#ifdef XP_MACOSX
+#undef TextRange
+#undef TextRangeArray
+#undef Comment
+#endif
+
using namespace mozilla::widget;
namespace mozilla {