Просмотр исходного кода

general: Fix more DLL linkage and EXPCL_PANDA_ macros

Sam Edwards 7 лет назад
Родитель
Сommit
7e61891c09

+ 1 - 1
panda/src/gobj/shader.h

@@ -436,7 +436,7 @@ public:
     ShaderPtrType     _type;
   };
 
-  class ShaderCaps {
+  class EXPCL_PANDA_GOBJ ShaderCaps {
   public:
     void clear();
     INLINE bool operator == (const ShaderCaps &other) const;

+ 1 - 1
panda/src/pgraph/cullBin.h

@@ -74,7 +74,7 @@ protected:
   GraphicsStateGuardianBase *_gsg;
 
   // Used in make_result_graph() and fill_result_graph().
-  class ResultGraphBuilder {
+  class EXPCL_PANDA_PGRAPH ResultGraphBuilder {
   public:
     ResultGraphBuilder(PandaNode *root_node);
     void add_object(CullableObject *object);

+ 1 - 1
panda/src/pgraphnodes/lodNode.h

@@ -161,7 +161,7 @@ protected:
   typedef pvector<Switch> SwitchVector;
 
 private:
-  class EXPCL_PANDA_PGRAPH CData : public CycleData {
+  class EXPCL_PANDA_PGRAPHNODES CData : public CycleData {
   public:
     INLINE CData();
     INLINE CData(const CData &copy);

+ 2 - 2
panda/src/pgraphnodes/lodNodeType.h

@@ -25,7 +25,7 @@ enum LODNodeType {
 
 END_PUBLISH
 
-EXPCL_PANDA_PGRAPH std::ostream &operator << (std::ostream &out, LODNodeType lnt);
-EXPCL_PANDA_PGRAPH std::istream &operator >> (std::istream &in, LODNodeType &cs);
+EXPCL_PANDA_PGRAPHNODES std::ostream &operator << (std::ostream &out, LODNodeType lnt);
+EXPCL_PANDA_PGRAPHNODES std::istream &operator >> (std::istream &in, LODNodeType &cs);
 
 #endif

+ 1 - 1
panda/src/pgraphnodes/uvScrollNode.h

@@ -23,7 +23,7 @@
 /**
  * This node is placed at key points within the scene graph to animate uvs.
  */
-class EXPCL_PANDA_PGRAPH UvScrollNode : public PandaNode {
+class EXPCL_PANDA_PGRAPHNODES UvScrollNode : public PandaNode {
 PUBLISHED:
   INLINE explicit UvScrollNode(const std::string &name, PN_stdfloat u_speed, PN_stdfloat v_speed, PN_stdfloat w_speed, PN_stdfloat r_speed);
   INLINE explicit UvScrollNode(const std::string &name);

+ 5 - 5
panda/src/pnmimage/config_pnmimage.h

@@ -21,11 +21,11 @@
 
 NotifyCategoryDecl(pnmimage, EXPCL_PANDA_PNMIMAGE, EXPTP_PANDA_PNMIMAGE);
 
-extern ConfigVariableBool pfm_force_littleendian;
-extern ConfigVariableBool pfm_reverse_dimensions;
-extern ConfigVariableBool pfm_resize_gaussian;
-extern ConfigVariableBool pfm_resize_quick;
-extern ConfigVariableDouble pfm_resize_radius;
+extern EXPCL_PANDA_PNMIMAGE ConfigVariableBool pfm_force_littleendian;
+extern EXPCL_PANDA_PNMIMAGE ConfigVariableBool pfm_reverse_dimensions;
+extern EXPCL_PANDA_PNMIMAGE ConfigVariableBool pfm_resize_gaussian;
+extern EXPCL_PANDA_PNMIMAGE ConfigVariableBool pfm_resize_quick;
+extern EXPCL_PANDA_PNMIMAGE ConfigVariableDouble pfm_resize_radius;
 
 extern EXPCL_PANDA_PNMIMAGE void init_libpnmimage();
 

+ 6 - 6
panda/src/pnmimage/ppmcmap.h

@@ -26,7 +26,7 @@ struct colorhist_list_item
 EXPCL_PANDA_PNMIMAGE colorhist_vector ppm_computecolorhist( pixel** pixels, int cols, int rows, int maxcolors, int* colorsP );
 /* Returns a colorhist *colorsP long (with space allocated for maxcolors. */
 
-void ppm_addtocolorhist ( colorhist_vector chv, int* colorsP, int maxcolors, pixel* colorP, int value, int position );
+EXPCL_PANDA_PNMIMAGE void ppm_addtocolorhist ( colorhist_vector chv, int* colorsP, int maxcolors, pixel* colorP, int value, int position );
 
 EXPCL_PANDA_PNMIMAGE void ppm_freecolorhist( colorhist_vector chv );
 
@@ -35,19 +35,19 @@ EXPCL_PANDA_PNMIMAGE void ppm_freecolorhist( colorhist_vector chv );
 
 typedef colorhist_list* colorhash_table;
 
-colorhash_table ppm_computecolorhash ( pixel** pixels, int cols, int rows, int maxcolors, int* colorsP );
+EXPCL_PANDA_PNMIMAGE colorhash_table ppm_computecolorhash ( pixel** pixels, int cols, int rows, int maxcolors, int* colorsP );
 
 EXPCL_PANDA_PNMIMAGE int
 ppm_lookupcolor( colorhash_table cht, pixel* colorP );
 
-colorhist_vector ppm_colorhashtocolorhist ( colorhash_table cht, int maxcolors );
+EXPCL_PANDA_PNMIMAGE colorhist_vector ppm_colorhashtocolorhist ( colorhash_table cht, int maxcolors );
 EXPCL_PANDA_PNMIMAGE colorhash_table ppm_colorhisttocolorhash( colorhist_vector chv, int colors );
 
-int ppm_addtocolorhash ( colorhash_table cht, pixel* colorP, int value );
+EXPCL_PANDA_PNMIMAGE int ppm_addtocolorhash ( colorhash_table cht, pixel* colorP, int value );
 /* Returns -1 on failure. */
 
-colorhash_table ppm_alloccolorhash ( void );
+EXPCL_PANDA_PNMIMAGE colorhash_table ppm_alloccolorhash ( void );
 
-void ppm_freecolorhash( colorhash_table cht );
+EXPCL_PANDA_PNMIMAGE void ppm_freecolorhash( colorhash_table cht );
 
 #endif

+ 1 - 1
panda/src/pnmimagetypes/pnmFileTypePfm.h

@@ -25,7 +25,7 @@
  * For reading and writing PFM files using the basic PNMImage interface, as if
  * they were basic RGB files.
  */
-class EXPCL_PANDA_PNMIMAGE PNMFileTypePfm : public PNMFileType {
+class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePfm : public PNMFileType {
 public:
   PNMFileTypePfm();
 

+ 1 - 1
panda/src/pstatclient/pStatClient.h

@@ -169,7 +169,7 @@ private:
 
   // This is where the meat of the Collector data is stored.  (All the stuff
   // in PStatCollector and PStatCollectorDef is just fluff.)
-  class Collector {
+  class EXPCL_PANDA_PSTATCLIENT Collector {
   public:
     INLINE Collector(int parent_index, const std::string &name);
     INLINE int get_parent_index() const;

+ 1 - 1
panda/src/pstatclient/pStatTimer.h

@@ -27,7 +27,7 @@ class Thread;
  * and when the PStatTimer variable goes out of scope (for instance, at the
  * end of the function), it will automatically stop the Collector.
  */
-class EXPCL_PANDA_PSTATCLIENT PStatTimer {
+class PStatTimer {
 public:
 #ifdef DO_PSTATS
   INLINE PStatTimer(PStatCollector &collector);

+ 0 - 7
panda/src/putil/bamReader.cxx

@@ -1544,10 +1544,3 @@ finalize() {
     }
   }
 }
-
-/**
- *
- */
-BamReader::AuxData::
-~AuxData() {
-}

+ 1 - 1
panda/src/putil/bamReader.h

@@ -228,7 +228,7 @@ public:
   class AuxData : public ReferenceCount {
   public:
     INLINE AuxData();
-    virtual ~AuxData();
+    virtual ~AuxData() = default;
   };
 
 private:

+ 2 - 2
panda/src/text/config_text.h

@@ -40,8 +40,8 @@ extern ConfigVariableBool text_small_caps;
 extern EXPCL_PANDA_TEXT ConfigVariableDouble text_small_caps_scale;
 extern ConfigVariableFilename text_default_font;
 extern EXPCL_PANDA_TEXT ConfigVariableDouble text_tab_width;
-extern ConfigVariableInt text_push_properties_key;
-extern ConfigVariableInt text_pop_properties_key;
+extern EXPCL_PANDA_TEXT ConfigVariableInt text_push_properties_key;
+extern EXPCL_PANDA_TEXT ConfigVariableInt text_pop_properties_key;
 extern ConfigVariableInt text_soft_hyphen_key;
 extern ConfigVariableInt text_soft_break_key;
 extern ConfigVariableInt text_embed_graphic_key;