mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:09:00 +08:00
Fix warning C4643 in clockutils
This commit is contained in:
parent
3fc54807cb
commit
55ed2f6ed8
@ -1,3 +1,3 @@
|
||||
Source: clockutils
|
||||
Version: 1.1.1-3651f232c27074c4ceead169e223edf5f00247c5-1
|
||||
Version: 1.1.1-3651f232c27074c4ceead169e223edf5f00247c5-2
|
||||
Description: A lightweight c++ library for commonly needed tasks. Optimized for simplicity and speed.
|
||||
|
29
ports/clockutils/fix-warningC4643.patch
Normal file
29
ports/clockutils/fix-warningC4643.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff --git a/include/clockUtils/sockets/TcpSocket.h b/include/clockUtils/sockets/TcpSocket.h
|
||||
index 6e0d9c8..3bb97a9 100644
|
||||
--- a/include/clockUtils/sockets/TcpSocket.h
|
||||
+++ b/include/clockUtils/sockets/TcpSocket.h
|
||||
@@ -57,9 +57,6 @@
|
||||
#define INVALID_SOCKET -1
|
||||
#endif
|
||||
|
||||
-namespace std {
|
||||
- class thread;
|
||||
-} /* namespace std */
|
||||
namespace clockUtils {
|
||||
enum class ClockError;
|
||||
namespace sockets {
|
||||
diff --git a/include/clockUtils/sockets/UdpSocket.h b/include/clockUtils/sockets/UdpSocket.h
|
||||
index 31eeeb5..c5da451 100644
|
||||
--- a/include/clockUtils/sockets/UdpSocket.h
|
||||
+++ b/include/clockUtils/sockets/UdpSocket.h
|
||||
@@ -60,10 +60,6 @@
|
||||
#define INVALID_SOCKET -1
|
||||
#endif
|
||||
|
||||
-namespace std {
|
||||
- class thread;
|
||||
-} /* namespace std */
|
||||
-
|
||||
namespace clockUtils {
|
||||
enum class ClockError;
|
||||
namespace sockets {
|
@ -14,6 +14,11 @@ else()
|
||||
SET(SHARED_FLAG OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CURRENT_PORT_DIR}/fix-warningC4643.patch"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user