mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
Fix various compilation warnings
This commit is contained in:
parent
494ba40c5e
commit
ac4b8d1e1d
@ -27,7 +27,9 @@
|
||||
|
||||
#include "iesDataset.h"
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
#include <math.h>
|
||||
|
||||
NotifyCategoryDef(iesdataset, "")
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
#include "pssmCameraRig.h"
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include "orthographicLens.h"
|
||||
|
||||
|
@ -27,7 +27,9 @@
|
||||
|
||||
#include "rpSpotLight.h"
|
||||
|
||||
#ifndef _USE_MATH_DEFINES
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
#include <math.h>
|
||||
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdtypedefs.h>
|
||||
|
||||
#define EXIT_SUCCESS 0
|
||||
|
@ -72,8 +72,8 @@ doIt(const MArgList &args) {
|
||||
#ifdef WIN32_VC
|
||||
// On Windows, we use the spawn function to run pview asynchronously.
|
||||
MString quoted = MString("\"") + filename + MString("\"");
|
||||
int retval = _spawnlp(_P_DETACH, "pview",
|
||||
"pview", pview_args.asChar(), quoted.asChar(), nullptr);
|
||||
intptr_t retval = _spawnlp(_P_DETACH, "pview",
|
||||
"pview", pview_args.asChar(), quoted.asChar(), nullptr);
|
||||
if (retval == -1) {
|
||||
return MS::kFailure;
|
||||
}
|
||||
|
@ -43,7 +43,9 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/stat.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user