diff --git a/code/M3D/m3d.h b/code/M3D/m3d.h index 5d78374f0..a36cc9613 100644 --- a/code/M3D/m3d.h +++ b/code/M3D/m3d.h @@ -95,7 +95,11 @@ typedef uint16_t M3D_INDEX; #else #define _inline #define _pack -#define _unused __pragma(warning(suppress:4100)) +# ifdef __cplusplus // only for c++ code +# define _unused __pragma(warning(suppress:4100)) +# else // or c code just use void +# define _unused (void) +# endif // ___cplusplus #endif #ifndef __cplusplus #define _register register