Index: native_client_sdk/src/libraries/ppapi_stub/main.c |
diff --git a/native_client_sdk/src/libraries/ppapi_stub/main.c b/native_client_sdk/src/libraries/ppapi_stub/main.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1428bcb2b83b276d869630bd3d0d12d7ebe640d |
--- /dev/null |
+++ b/native_client_sdk/src/libraries/ppapi_stub/main.c |
@@ -0,0 +1,17 @@ |
+/* |
+ * Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+/* |
+ * An application that doesn't define its own main but links in -lppapi |
+ * gets this one. A plugin may instead have its own main that calls |
+ * PpapiPluginMain (or PpapiPluginStart) after doing some other setup. |
+ */ |
+ |
+int PpapiPluginMain(); |
+ |
+int main(void) { |
+ return PpapiPluginMain(); |
+} |