mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Revert non-Windows template export changes from 1.9.x, they're less stable than I thought
This commit is contained in:
parent
9edf75aa7b
commit
4d46172fba
@ -436,7 +436,7 @@
|
||||
#define IMPORT_CLASS
|
||||
#endif
|
||||
/* "extern template" is now part of the C++11 standard. */
|
||||
#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC)
|
||||
#if defined(WIN32_VC) && !defined(CPPPARSER) && !defined(LINK_ALL_STATIC)
|
||||
#define EXPORT_TEMPL
|
||||
#define IMPORT_TEMPL extern
|
||||
#else
|
||||
|
@ -174,7 +174,7 @@ typedef ios::seekdir ios_seekdir;
|
||||
# define MOVE(x) x
|
||||
#endif
|
||||
|
||||
#if !defined(LINK_ALL_STATIC) && defined(EXPORT_TEMPLATES)
|
||||
#if defined(WIN32_VC) && !defined(LINK_ALL_STATIC) && defined(EXPORT_TEMPLATES)
|
||||
// This macro must be used to export an instantiated template class
|
||||
// from a DLL. If the template class name itself contains commas, it
|
||||
// may be necessary to first define a macro for the class name, to
|
||||
|
@ -360,8 +360,6 @@ private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_DISPLAY, EXPTP_PANDA_DISPLAY, epvector<DisplayRegion::Region>);
|
||||
|
||||
#include "displayRegion.I"
|
||||
|
||||
#endif /* DISPLAYREGION_H */
|
||||
|
@ -65,9 +65,6 @@ private:
|
||||
Morphs _morphs;
|
||||
};
|
||||
|
||||
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEGG, EXPTP_PANDAEGG, EggMorphList<EggMorph<LVector3d> >);
|
||||
EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEGG, EXPTP_PANDAEGG, EggMorphList<EggMorph<LVector4> >);
|
||||
|
||||
typedef EggMorphList<EggMorphVertex> EggMorphVertexList;
|
||||
typedef EggMorphList<EggMorphNormal> EggMorphNormalList;
|
||||
typedef EggMorphList<EggMorphTexCoord> EggMorphTexCoordList;
|
||||
|
@ -607,8 +607,6 @@ private:
|
||||
static TypeHandle _type_handle;
|
||||
};
|
||||
|
||||
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_GOBJ, EXPTP_PANDA_GOBJ, epvector<Shader::ShaderMatSpec>);
|
||||
|
||||
#include "shader.I"
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user