vcpkg/ports/glog/fix-windows-CXX11_ATOMIC.patch
WhuAegeanSea fdeea72bb0
[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
2022-06-06 13:22:22 -07:00

18 lines
394 B
Diff

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)