-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[glog] Avoid including Windows.h (#24538)
* Fix building errors of glog * Bump the port version of glog * Update version database * Fix building errors * Update version database
- Loading branch information
1 parent
904a51f
commit fdeea72
Showing
6 changed files
with
25 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in | ||
index 3ecacfb..2d48a0e 100644 | ||
--- a/src/glog/logging.h.in | ||
+++ b/src/glog/logging.h.in | ||
@@ -100,6 +100,12 @@ | ||
#include <gflags/gflags.h> | ||
#endif | ||
|
||
+#ifdef GLOG_OS_WINDOWS | ||
+#ifndef HAVE_CXX11_ATOMIC | ||
+#define HAVE_CXX11_ATOMIC | ||
+#endif | ||
+#endif | ||
+ | ||
#ifdef HAVE_CXX11_ATOMIC | ||
#include <atomic> | ||
#elif defined(GLOG_OS_WINDOWS) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters