Fix various compilation warnings

This commit is contained in:
rdb 2018-06-11 14:53:25 +02:00
parent 494ba40c5e
commit ac4b8d1e1d
6 changed files with 12 additions and 2 deletions

View File

@ -27,7 +27,9 @@
#include "iesDataset.h"
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>
NotifyCategoryDef(iesdataset, "")

View File

@ -27,7 +27,9 @@
#include "pssmCameraRig.h"
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include "orthographicLens.h"

View File

@ -27,7 +27,9 @@
#include "rpSpotLight.h"
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>

View File

@ -1,3 +1,5 @@
#pragma once
#include <stdtypedefs.h>
#define EXIT_SUCCESS 0

View File

@ -72,7 +72,7 @@ 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",
intptr_t retval = _spawnlp(_P_DETACH, "pview",
"pview", pview_args.asChar(), quoted.asChar(), nullptr);
if (retval == -1) {
return MS::kFailure;

View File

@ -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>