Răsfoiți Sursa

Fix linux build

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@115 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 17 ani în urmă
părinte
comite
51bfc46c1d

+ 2 - 1
code/ASEParser.h

@@ -556,6 +556,7 @@ public:
 };
 };
 
 
 
 
-};};
+} // Namespace ASE
+} // Namespace ASSIMP
 
 
 #endif // !! include guard
 #endif // !! include guard

+ 2 - 1
code/ByteSwap.h

@@ -136,7 +136,8 @@ public:
 		Swap8(fOut);
 		Swap8(fOut);
 	}
 	}
 };
 };
-};
+
+} // Namespace Assimp
 
 
 // byteswap macros for BigEndian/LittleEndian support 
 // byteswap macros for BigEndian/LittleEndian support 
 #if (defined AI_BUILD_BIG_ENDIAN)
 #if (defined AI_BUILD_BIG_ENDIAN)

+ 4 - 2
code/GenVertexNormalsProcess.h

@@ -45,7 +45,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 #include "BaseProcess.h"
 #include "BaseProcess.h"
 #include "../include/aiMesh.h"
 #include "../include/aiMesh.h"
+
 class GenNormalsTest;
 class GenNormalsTest;
+
 namespace Assimp {
 namespace Assimp {
 
 
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------
@@ -102,6 +104,6 @@ private:
 	float configMaxAngle;
 	float configMaxAngle;
 };
 };
 
 
-}; // end of namespace Assimp
+} // end of namespace Assimp
 
 
-#endif // !!AI_GENVERTEXNORMALPROCESS_H_INC
+#endif // !!AI_GENVERTEXNORMALPROCESS_H_INC

+ 3 - 3
code/HMPLoader.h

@@ -152,8 +152,8 @@ protected:
 
 
 private:
 private:
 
 
-
 };
 };
-}; // end of namespace Assimp
 
 
-#endif // AI_HMPIMPORTER_H_INC
+} // end of namespace Assimp
+
+#endif // AI_HMPIMPORTER_H_INC

+ 4 - 2
code/HalfLifeFileData.h

@@ -142,5 +142,7 @@ struct Header_HL2
 
 
 #include "./Compiler/poppack1.h"
 #include "./Compiler/poppack1.h"
 
 
-};}; // end namespaces
-#endif // ! AI_MDLFILEHELPER2_H_INC
+}
+} // end namespaces
+
+#endif // ! AI_MDLFILEHELPER2_H_INC

+ 3 - 2
code/KillNormalsProcess.h

@@ -81,6 +81,7 @@ public:
 private:
 private:
 	bool KillMeshNormals (aiMesh* pcMesh);
 	bool KillMeshNormals (aiMesh* pcMesh);
 };
 };
-}; // end of namespace Assimp
 
 
-#endif // !!AI_KILLNORMALPROCESS_H_INC
+} // end of namespace Assimp
+
+#endif // !!AI_KILLNORMALPROCESS_H_INC

+ 3 - 3
code/MD2FileData.h

@@ -163,7 +163,7 @@ struct Skin
 void LookupNormalIndex(uint8_t index,aiVector3D& vOut);
 void LookupNormalIndex(uint8_t index,aiVector3D& vOut);
 
 
 
 
-};
-};
+}
+}
 
 
-#endif // !! include guard
+#endif // !! include guard

+ 2 - 2
code/MD3FileData.h

@@ -294,7 +294,7 @@ inline void Vec3NormalToLatLng( const aiVector3D& p_vIn, uint16_t& p_iOut )
 	}
 	}
 }
 }
 
 
-};
-};
+}
+}
 
 
 #endif // !! AI_MD3FILEHELPER_H_INC
 #endif // !! AI_MD3FILEHELPER_H_INC

+ 1 - 1
code/MDCLoader.h

@@ -129,4 +129,4 @@ protected:
 
 
 } // end of namespace Assimp
 } // end of namespace Assimp
 
 
-#endif // AI_3DSIMPORTER_H_INC
+#endif // AI_3DSIMPORTER_H_INC

+ 4 - 3
code/MDLFileData.h

@@ -142,7 +142,7 @@ struct Header
 	int32_t num_skins;       
 	int32_t num_skins;       
 
 
 	//! Texture width in pixels
 	//! Texture width in pixels
-	int32_t skinwidth;        
+	int32_t skinwidth;
 
 
 	//! Texture height in pixels
 	//! Texture height in pixels
 	int32_t skinheight;       
 	int32_t skinheight;       
@@ -959,6 +959,7 @@ struct IntSplittedGroupData_MDL7
 };
 };
 
 
 
 
-};}; // end namespaces
+}
+} // end namespaces
 
 
-#endif // !! AI_MDLFILEHELPER_H_INC
+#endif // !! AI_MDLFILEHELPER_H_INC

+ 3 - 2
code/MDLLoader.h

@@ -461,6 +461,7 @@ protected:
 	 */
 	 */
 	unsigned int iFileSize;
 	unsigned int iFileSize;
 };
 };
-}; // end of namespace Assimp
 
 
-#endif // AI_3DSIMPORTER_H_INC
+} // end of namespace Assimp
+
+#endif // AI_3DSIMPORTER_H_INC

+ 3 - 3
code/PlyParser.h

@@ -551,8 +551,8 @@ TYPE PLY::PropertyInstance::ConvertTo(
 	};
 	};
 	return (TYPE)0;
 	return (TYPE)0;
 }
 }
-};
 
 
-};
+} // Namespace PLY
+} // Namespace AssImp
 
 
-#endif // !! include guard
+#endif // !! include guard

+ 1 - 1
code/RemoveComments.h

@@ -86,4 +86,4 @@ public:
 };
 };
 } // ! Assimp
 } // ! Assimp
 
 
-#endif // !! AI_REMOVE_COMMENTS_H_INC
+#endif // !! AI_REMOVE_COMMENTS_H_INC

+ 3 - 2
code/RemoveRedundantMaterials.h

@@ -80,6 +80,7 @@ public:
 	*/
 	*/
 	void Execute( aiScene* pScene);
 	void Execute( aiScene* pScene);
 };
 };
-}; // end of namespace Assimp
 
 
-#endif // !!AI_REMOVEREDUNDANTMATERIALS_H_INC
+} // end of namespace Assimp
+
+#endif // !!AI_REMOVEREDUNDANTMATERIALS_H_INC

+ 4 - 3
code/SMDLoader.h

@@ -166,7 +166,7 @@ struct Bone
 	bool bIsUsed;
 	bool bIsUsed;
 };
 };
 
 
-}; //! namespace SMD
+} //! namespace SMD
 
 
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------
 /** Used to load Half-life 1 and 2 SMD models
 /** Used to load Half-life 1 and 2 SMD models
@@ -416,6 +416,7 @@ private:
 	unsigned int iLineNumber;
 	unsigned int iLineNumber;
 
 
 };
 };
-}; // end of namespace Assimp
 
 
-#endif // AI_SMDIMPORTER_H_INC
+} // end of namespace Assimp
+
+#endif // AI_SMDIMPORTER_H_INC

+ 2 - 2
code/SpatialSort.h

@@ -97,7 +97,7 @@ protected:
 
 
 		Entry() { /** intentionally not initialized.*/ }
 		Entry() { /** intentionally not initialized.*/ }
 		Entry( unsigned int pIndex, const aiVector3D& pPosition, float pDistance) 
 		Entry( unsigned int pIndex, const aiVector3D& pPosition, float pDistance) 
-			: mPosition( pPosition), mIndex( pIndex), mDistance( pDistance)
+			: mIndex( pIndex), mPosition( pPosition), mDistance( pDistance)
 		{ 	}
 		{ 	}
 
 
 		bool operator < (const Entry& e) const { return mDistance < e.mDistance; }
 		bool operator < (const Entry& e) const { return mDistance < e.mDistance; }
@@ -109,4 +109,4 @@ protected:
 
 
 } // end of namespace Assimp
 } // end of namespace Assimp
 
 
-#endif // AI_SPATIALSORT_H_INC
+#endif // AI_SPATIALSORT_H_INC

+ 2 - 2
code/TextureTransform.h

@@ -202,6 +202,6 @@ public:
 		const Dot3DS::Material* pcMatIn);
 		const Dot3DS::Material* pcMatIn);
 };
 };
 
 
-};
+}
 
 
-#endif //! AI_TEXTURE_TRANSFORM_H_INCLUDED
+#endif //! AI_TEXTURE_TRANSFORM_H_INCLUDED

+ 1 - 1
include/aiMaterial.h

@@ -76,7 +76,7 @@ enum aiPropertyTypeInfo
 
 
     /** Simple binary buffer
     /** Simple binary buffer
     */
     */
-    aiPTI_Buffer = 0x5,
+    aiPTI_Buffer = 0x5
 };
 };
 
 
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------

+ 1 - 1
include/aiPostProcess.h

@@ -173,7 +173,7 @@ enum aiPostProcessSteps
 	 * The step inverts all infacing normals. Generally it is recommended
 	 * The step inverts all infacing normals. Generally it is recommended
 	 * to enable this step.
 	 * to enable this step.
 	*/
 	*/
-	aiProcess_FixInfacingNormals = 0x2000,
+	aiProcess_FixInfacingNormals = 0x2000
 };
 };
 
 
 
 

+ 1 - 1
include/assimp.hpp

@@ -58,7 +58,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 namespace Assimp
 namespace Assimp
 {
 {
 	class Importer;
 	class Importer;
-};
+}
 
 
 // internal ASSIMP headers - for plugin development
 // internal ASSIMP headers - for plugin development
 #include "./../code/BaseImporter.h"
 #include "./../code/BaseImporter.h"