diff --git a/include/assimp/cexport.h b/include/assimp/cexport.h index 5916c2da9..9041621a1 100644 --- a/include/assimp/cexport.h +++ b/include/assimp/cexport.h @@ -211,10 +211,10 @@ struct aiExportDataBlob extension that should be used when writing the data to disc. */ - aiString name; + C_STRUCT aiString name; /** Pointer to the next blob in the chain or NULL if there is none. */ - aiExportDataBlob * next; + C_STRUCT aiExportDataBlob * next; #ifdef __cplusplus /// Default constructor @@ -247,7 +247,7 @@ ASSIMP_API const C_STRUCT aiExportDataBlob* aiExportSceneToBlob( const C_STRUCT * returned by aiExportScene(). * @param pData the data blob returned by #aiExportSceneToBlob */ -ASSIMP_API C_STRUCT void aiReleaseExportBlob( const C_STRUCT aiExportDataBlob* pData ); +ASSIMP_API void aiReleaseExportBlob( const C_STRUCT aiExportDataBlob* pData ); #ifdef __cplusplus } diff --git a/include/assimp/types.h b/include/assimp/types.h index 73ab85b3d..db1025820 100644 --- a/include/assimp/types.h +++ b/include/assimp/types.h @@ -371,7 +371,7 @@ struct aiString /** Standard return type for some library functions. * Rarely used, and if, mostly in the C API. */ -enum aiReturn +typedef enum aiReturn { /** Indicates that a function was successful */ aiReturn_SUCCESS = 0x0, @@ -388,7 +388,7 @@ enum aiReturn * Force 32-bit size enum */ _AI_ENFORCE_ENUM_SIZE = 0x7fffffff -}; // !enum aiReturn +} aiReturn; // !enum aiReturn // just for backwards compatibility, don't use these constants anymore #define AI_SUCCESS aiReturn_SUCCESS diff --git a/test/unit/CCompilerTest.c b/test/unit/CCompilerTest.c index e1b806372..b27376350 100644 --- a/test/unit/CCompilerTest.c +++ b/test/unit/CCompilerTest.c @@ -5,4 +5,5 @@ #include #include #include -#include \ No newline at end of file +#include +#include