Skip to content

Commit

Permalink
Material: Fix the build for c compiler (assimp#5879)
Browse files Browse the repository at this point in the history
- Mark inlined functions as static inline to fix the linkage for c compilers
- closes assimp#5875
  • Loading branch information
kimkulling authored Nov 18, 2024
1 parent e7a6d33 commit c9bbbcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/assimp/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ ASSIMP_API C_ENUM aiReturn aiGetMaterialFloatArray(
* @return Specifies whether the key has been found. If not, the output
* float remains unmodified.*/
// ---------------------------------------------------------------------------
inline aiReturn aiGetMaterialFloat(const C_STRUCT aiMaterial *pMat,
static inline aiReturn aiGetMaterialFloat(const C_STRUCT aiMaterial *pMat,
const char *pKey,
unsigned int type,
unsigned int index,
Expand All @@ -1582,7 +1582,7 @@ ASSIMP_API C_ENUM aiReturn aiGetMaterialIntegerArray(const C_STRUCT aiMaterial *
*
* See the sample for aiGetMaterialFloat for more information.*/
// ---------------------------------------------------------------------------
inline aiReturn aiGetMaterialInteger(const C_STRUCT aiMaterial *pMat,
static inline aiReturn aiGetMaterialInteger(const C_STRUCT aiMaterial *pMat,
const char *pKey,
unsigned int type,
unsigned int index,
Expand Down

0 comments on commit c9bbbcf

Please sign in to comment.