Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: mojo/public/c/system/main.h

Issue 1683473002: Fix declaration of MojoMain and remove win32 defines (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/main.h
diff --git a/mojo/public/c/system/main.h b/mojo/public/c/system/main.h
index 65d0837c03eb9baf5604ee42a5d25266be749c9f..cbd8af8c659e6376b4bf71e68d32462226fdff7c 100644
--- a/mojo/public/c/system/main.h
+++ b/mojo/public/c/system/main.h
@@ -12,21 +12,13 @@
// MojoResult MojoMain(MojoHandle application_request) {
// ...
// }
-//
-// TODO(davemoore): Establish this as part of our SDK for third party mojo
-// application writers.
#if defined(__cplusplus)
extern "C" {
#endif
-#if defined(WIN32)
-__declspec(dllexport) MojoResult
- __cdecl MojoMain(MojoHandle application_request);
-#else // !defined(WIN32)
-__attribute__((visibility("default"))) MojoResult
- MojoMain(MojoHandle service_provider_handle);
-#endif // defined(WIN32)
+__attribute__((visibility("default"))) MojoResult MojoMain(
+ MojoHandle application_request);
#ifdef __cplusplus
} // extern "C"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698