From b3c69bd8cf0dac5470f26215a79a8015b3a3db3e Mon Sep 17 00:00:00 2001 From: LaserEyess Date: Mon, 3 Jul 2023 11:00:08 -0400 Subject: [PATCH] guard #pragma warning on non-MSVC compilers This pragma is only recognized by MSVC --- src/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types.h b/src/types.h index eab300a..dc0577e 100644 --- a/src/types.h +++ b/src/types.h @@ -1,7 +1,9 @@ #ifndef SM_TYPES_H_ #define SM_TYPES_H_ +#ifdef _MSC_VER #pragma warning(disable: 4244) +#endif #include #include