Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2018-12-11 07:01:31 +0300
committerMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2018-12-11 07:01:31 +0300
commitdedceb82c6c4b1930920b31ddcdb6d3791e20def (patch)
tree886c92351b2d7363702903686918182ee533df43
parentcdfe90a9a38665f2d37ab86bcbf25f55df25bf26 (diff)
fix pragma
-rwxr-xr-xsrc/common/file_stream.h4
-rwxr-xr-xsrc/common/filesystem.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/file_stream.h b/src/common/file_stream.h
index 5e49e946..255948f0 100755
--- a/src/common/file_stream.h
+++ b/src/common/file_stream.h
@@ -4,14 +4,14 @@
#include "common/logging.h"
#include "common/definitions.h"
-#ifdef _GNUC_
+#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
#include "3rd_party/zstr/zstr.hpp"
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream_buffer.hpp>
-#ifdef _GNUC_
+#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
diff --git a/src/common/filesystem.h b/src/common/filesystem.h
index e0062796..f9c06104 100755
--- a/src/common/filesystem.h
+++ b/src/common/filesystem.h
@@ -7,7 +7,7 @@
// @TODO: go back to canonical names for functions and objects
// as specified in C++17 so it becomes easy to move in the future
-#ifdef _GNUC_
+#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
@@ -15,7 +15,7 @@
#include "3rd_party/pathie-cpp/include/path.hpp"
#include "3rd_party/pathie-cpp/include/errors.hpp"
-#ifdef _GNUC_
+#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif