Update m3d.h

Fix vs-defines for unused define as well.
pull/2825/head
Kim Kulling 2019-12-13 08:21:45 +01:00 committed by GitHub
parent 32835873f0
commit 8be1060ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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