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

Unified Diff: webkit/glue/plugins/test/npapi_test.cc

Issue 1661: port some parts of webkit/glue/plugins/test to Linux... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « webkit/glue/plugins/test/SConscript ('k') | webkit/glue/plugins/test/plugin_arguments_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/test/npapi_test.cc
===================================================================
--- webkit/glue/plugins/test/npapi_test.cc (revision 2299)
+++ webkit/glue/plugins/test/npapi_test.cc (working copy)
@@ -41,23 +41,30 @@
//
//
+#include "base/basictypes.h"
+
+#if defined(OS_WIN)
#include <windows.h>
+#endif
+
#include "webkit/glue/plugins/test/plugin_client.h"
-BOOL WINAPI DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) {
+#if defined(OS_WIN)
+BOOL API_CALL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) {
return TRUE;
}
+#endif
extern "C" {
-NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* pFuncs) {
+NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* pFuncs) {
return NPAPIClient::PluginClient::GetEntryPoints(pFuncs);
}
-NPError WINAPI NP_Initialize(NPNetscapeFuncs* pFuncs) {
+NPError API_CALL NP_Initialize(NPNetscapeFuncs* pFuncs) {
return NPAPIClient::PluginClient::Initialize(pFuncs);
}
-NPError WINAPI NP_Shutdown() {
+NPError API_CALL NP_Shutdown() {
return NPAPIClient::PluginClient::Shutdown();
}
} // extern "C"
« no previous file with comments | « webkit/glue/plugins/test/SConscript ('k') | webkit/glue/plugins/test/plugin_arguments_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698