Skip to content

Commit df9dd7f

Browse files
author
Grok Compression
committed
build: protect GCC pragmas with #ifdef
1 parent b318b3b commit df9dd7f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/codec/common/common.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@
3232
#endif /* _WIN32 */
3333
#include <chrono>
3434

35-
35+
#if defined(__GNUC__) || defined(__clang__)
3636
#pragma GCC diagnostic push
3737
#pragma GCC diagnostic ignored "-Wsign-conversion"
38+
#endif
39+
3840
#include "spdlog/spdlog.h"
39-
#include <spdlog/sinks/basic_file_sink.h> // Required for basic_logger_mt
41+
#include <spdlog/sinks/basic_file_sink.h>
4042
#include <spdlog/sinks/stdout_color_sinks.h>
43+
44+
#if defined(__GNUC__) || defined(__clang__)
4145
#pragma GCC diagnostic pop
46+
#endif
4247

4348

4449
#include "grok.h"

0 commit comments

Comments
 (0)