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