summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.h')
-rw-r--r--src/corelib/kernel/qcoreapplication.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication.h b/src/corelib/kernel/qcoreapplication.h
index 097b8b4823..ea23b0ccb5 100644
--- a/src/corelib/kernel/qcoreapplication.h
+++ b/src/corelib/kernel/qcoreapplication.h
@@ -54,6 +54,14 @@
typedef struct tagMSG MSG;
#endif
+#ifdef Q_OS_NACL
+// Pepper-based nacl modules can`t define main(). Rename it
+// here to hide it. nacl_main will be called by the "main"
+// thread started in NPP_Initialize.
+// This is a hack really, we`ll see if it works.
+#define main nacl_main
+#endif
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE