mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Fix compilation issues with the runtime
This commit is contained in:
parent
ba6529811d
commit
7edecd7fea
@ -230,7 +230,7 @@ call(const string &method_name, P3D_object *params[], int num_params) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
P3D_object *PPBrowserObject::
|
||||
eval(const string &expression) const {
|
||||
NPString npexpr = { expression.c_str(), expression.length() };
|
||||
NPString npexpr = { expression.c_str(), (uint32_t)expression.length() };
|
||||
|
||||
NPVariant result;
|
||||
if (!browser->evaluate(_instance->get_npp_instance(), _npobj,
|
||||
|
@ -2173,7 +2173,7 @@ set_failed() {
|
||||
NPObject *window_object = NULL;
|
||||
if (browser->getvalue(_npp_instance, NPNVWindowNPObject,
|
||||
&window_object) == NPERR_NO_ERROR) {
|
||||
NPString npexpr = { expression.c_str(), expression.length() };
|
||||
NPString npexpr = { expression.c_str(), (uint32_t)expression.length() };
|
||||
NPVariant result;
|
||||
if (browser->evaluate(_npp_instance, window_object,
|
||||
&npexpr, &result)) {
|
||||
|
@ -187,7 +187,7 @@ NP_Initialize(NPNetscapeFuncs *browserFuncs,
|
||||
}
|
||||
#endif
|
||||
|
||||
int browser_major = (browser->version >> 8) && 0xff;
|
||||
int browser_major = (browser->version >> 8) & 0xff;
|
||||
int browser_minor = browser->version & 0xff;
|
||||
nout << "Browser NPAPI version " << browser_major << "." << browser_minor << "\n";
|
||||
|
||||
|
@ -439,6 +439,10 @@ if (RTDIST and DISTRIBUTOR == "cmu"):
|
||||
elif RTDIST and not HOST_URL:
|
||||
exit("You must specify a host URL when building the rtdist!")
|
||||
|
||||
if RUNTIME and not HOST_URL:
|
||||
# Set this to a nice default.
|
||||
HOST_URL = "https://runtime.panda3d.org/"
|
||||
|
||||
########################################################################
|
||||
##
|
||||
## Choose a Compiler.
|
||||
|
@ -26,6 +26,8 @@ distribution.
|
||||
#ifndef TINYXML_INCLUDED
|
||||
#define TINYXML_INCLUDED
|
||||
|
||||
#include "pandasymbols.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4530 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user