summaryrefslogtreecommitdiffstats
path: root/ppapi/examples/scripting/post_message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/examples/scripting/post_message.cc')
-rw-r--r--ppapi/examples/scripting/post_message.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/examples/scripting/post_message.cc b/ppapi/examples/scripting/post_message.cc
index 24f7927..636a7a8 100644
--- a/ppapi/examples/scripting/post_message.cc
+++ b/ppapi/examples/scripting/post_message.cc
@@ -8,6 +8,12 @@
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/var.h"
+// When compiling natively on Windows, PostMessage can be #define-d to
+// something else.
+#ifdef PostMessage
+#undef PostMessage
+#endif
+
// This is a simple C++ Pepper plugin that demonstrates HandleMessage and
// PostMessage.