mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Compile fixes for compilers that don't support all C++11 features
This commit is contained in:
parent
1eaa1bcf70
commit
8ec4da2824
@ -1290,7 +1290,7 @@ def CompileCxx(obj,src,opts):
|
|||||||
cmd += " -fno-strict-aliasing"
|
cmd += " -fno-strict-aliasing"
|
||||||
|
|
||||||
if optlevel >= 3:
|
if optlevel >= 3:
|
||||||
cmd += " -ffast-math -fno-stack-protector -fno-stack-check"
|
cmd += " -ffast-math -fno-stack-protector"
|
||||||
if optlevel == 3:
|
if optlevel == 3:
|
||||||
# Fast math is nice, but we'd like to see NaN in dev builds.
|
# Fast math is nice, but we'd like to see NaN in dev builds.
|
||||||
cmd += " -fno-finite-math-only"
|
cmd += " -fno-finite-math-only"
|
||||||
|
@ -435,7 +435,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
const Geom *_object;
|
const Geom *_object;
|
||||||
Thread *const _current_thread;
|
Thread *_current_thread;
|
||||||
const Geom::CData *_cdata;
|
const Geom::CData *_cdata;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -389,7 +389,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
CPT(GeomPrimitive) _object;
|
CPT(GeomPrimitive) _object;
|
||||||
Thread *const _current_thread;
|
Thread *_current_thread;
|
||||||
const GeomPrimitive::CData *_cdata;
|
const GeomPrimitive::CData *_cdata;
|
||||||
|
|
||||||
CPT(GeomVertexArrayData) _vertices;
|
CPT(GeomVertexArrayData) _vertices;
|
||||||
|
@ -409,6 +409,10 @@ protected:
|
|||||||
Thread *current_thread,
|
Thread *current_thread,
|
||||||
GeomVertexData::CData *cdata);
|
GeomVertexData::CData *cdata);
|
||||||
|
|
||||||
|
private:
|
||||||
|
GeomVertexDataPipelineBase(const GeomVertexDataPipelineBase ©) DELETED;
|
||||||
|
GeomVertexDataPipelineBase &operator = (const GeomVertexDataPipelineBase ©) DELETED_ASSIGN;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
INLINE ~GeomVertexDataPipelineBase();
|
INLINE ~GeomVertexDataPipelineBase();
|
||||||
|
|
||||||
@ -429,7 +433,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
PT(GeomVertexData) _object;
|
PT(GeomVertexData) _object;
|
||||||
Thread *const _current_thread;
|
Thread *_current_thread;
|
||||||
GeomVertexData::CData *_cdata;
|
GeomVertexData::CData *_cdata;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -441,11 +445,7 @@ class EXPCL_PANDA_GOBJ GeomVertexDataPipelineReader : public GeomVertexDataPipel
|
|||||||
public:
|
public:
|
||||||
INLINE GeomVertexDataPipelineReader(Thread *current_thread);
|
INLINE GeomVertexDataPipelineReader(Thread *current_thread);
|
||||||
INLINE GeomVertexDataPipelineReader(const GeomVertexData *object, Thread *current_thread);
|
INLINE GeomVertexDataPipelineReader(const GeomVertexData *object, Thread *current_thread);
|
||||||
private:
|
|
||||||
GeomVertexDataPipelineReader(const GeomVertexDataPipelineReader ©) DELETED;
|
|
||||||
GeomVertexDataPipelineReader &operator = (const GeomVertexDataPipelineReader ©) DELETED_ASSIGN;
|
|
||||||
|
|
||||||
public:
|
|
||||||
ALLOC_DELETED_CHAIN(GeomVertexDataPipelineReader);
|
ALLOC_DELETED_CHAIN(GeomVertexDataPipelineReader);
|
||||||
|
|
||||||
INLINE void set_object(CPT(GeomVertexData) object);
|
INLINE void set_object(CPT(GeomVertexData) object);
|
||||||
@ -509,11 +509,7 @@ class EXPCL_PANDA_GOBJ GeomVertexDataPipelineWriter : public GeomVertexDataPipel
|
|||||||
public:
|
public:
|
||||||
INLINE GeomVertexDataPipelineWriter(GeomVertexData *object, bool force_to_0,
|
INLINE GeomVertexDataPipelineWriter(GeomVertexData *object, bool force_to_0,
|
||||||
Thread *current_thread);
|
Thread *current_thread);
|
||||||
private:
|
|
||||||
GeomVertexDataPipelineWriter(const GeomVertexDataPipelineWriter ©) DELETED;
|
|
||||||
GeomVertexDataPipelineWriter &operator = (const GeomVertexDataPipelineWriter ©) DELETED_ASSIGN;
|
|
||||||
|
|
||||||
public:
|
|
||||||
INLINE ~GeomVertexDataPipelineWriter();
|
INLINE ~GeomVertexDataPipelineWriter();
|
||||||
ALLOC_DELETED_CHAIN(GeomVertexDataPipelineWriter);
|
ALLOC_DELETED_CHAIN(GeomVertexDataPipelineWriter);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user