mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
build on mac
This commit is contained in:
parent
f2437ed29e
commit
71d65bb60c
@ -147,8 +147,18 @@ NPP_SetValue(NPP instance, NPNVariable variable, void *value) {
|
||||
}
|
||||
|
||||
// Symbol called once by the browser to initialize the plugin
|
||||
#ifdef _WIN32
|
||||
NPError OSCALL
|
||||
NP_Initialize(NPNetscapeFuncs *browserFuncs)
|
||||
#else
|
||||
// On Mac, the API specifies this second parameter is included, but it
|
||||
// lies. We actually don't get a second parameter on Mac, but we have
|
||||
// to put it here to make the compiler happy.
|
||||
NPError OSCALL
|
||||
NP_Initialize(NPNetscapeFuncs *browserFuncs) {
|
||||
NP_Initialize(NPNetscapeFuncs *browserFuncs,
|
||||
NPPluginFuncs *pluginFuncs)
|
||||
#endif
|
||||
{
|
||||
// save away browser functions
|
||||
browser = browserFuncs;
|
||||
|
||||
|
@ -20,7 +20,13 @@
|
||||
#include "../plugin/load_plugin_src.h"
|
||||
|
||||
extern "C" {
|
||||
#ifdef _WIN32
|
||||
NPError OSCALL NP_Initialize(NPNetscapeFuncs *browserFuncs);
|
||||
#else
|
||||
NPError OSCALL NP_Initialize(NPNetscapeFuncs *browserFuncs,
|
||||
NPPluginFuncs *pluginFuncs);
|
||||
#endif
|
||||
|
||||
NPError OSCALL NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
|
||||
NPError OSCALL NP_Shutdown(void);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user