forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[many ports] Include functional to fix error C2039 and C2504 (microso…
- Loading branch information
1 parent
3ef62a2
commit 2b1d52a
Showing
21 changed files
with
127 additions
and
35 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,12 @@ | ||
diff --git a/util/string_piece_hash.hh b/util/string_piece_hash.hh | ||
index 6ff6f88..16808cd 100644 | ||
--- a/util/string_piece_hash.hh | ||
+++ b/util/string_piece_hash.hh | ||
@@ -1,6 +1,7 @@ | ||
#ifndef UTIL_STRING_PIECE_HASH_H | ||
#define UTIL_STRING_PIECE_HASH_H | ||
|
||
+#include <functional> | ||
#include "util/have.hh" | ||
#include "util/string_piece.hh" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/prc/writePRC.h b/src/prc/writePRC.h | ||
index d0b4e0e..3bc68ea 100644 | ||
--- a/src/prc/writePRC.h | ||
+++ b/src/prc/writePRC.h | ||
@@ -31,6 +31,7 @@ | ||
#include "PRC.h" | ||
#include <float.h> | ||
#include <math.h> | ||
+#include <functional> | ||
|
||
static const uint32_t m1=(uint32_t)-1; | ||
static const double pi=acos(-1.0); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp | ||
index 9d4473f..3f91018 100644 | ||
--- a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp | ||
+++ b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp | ||
@@ -47,6 +47,7 @@ | ||
#include <time.h> | ||
#include <stdarg.h> | ||
#include <math.h> | ||
+#include <functional> | ||
|
||
#ifndef _WIN32 | ||
#include <unistd.h> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/core/RpUnits.h b/src/core/RpUnits.h | ||
index a640205..e697424 100644 | ||
--- a/src/core/RpUnits.h | ||
+++ b/src/core/RpUnits.h | ||
@@ -59,6 +59,7 @@ enum RP_UNITS_CONSTS { | ||
#include <stdlib.h> | ||
#include <errno.h> | ||
#include <math.h> | ||
+#include <functional> | ||
|
||
#include "RpDict.h" | ||
#include "RpUnitsStd.h" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/sl/connectivity.hpp b/src/sl/connectivity.hpp | ||
index 1942c6c..1b66b9d 100644 | ||
--- a/src/sl/connectivity.hpp | ||
+++ b/src/sl/connectivity.hpp | ||
@@ -26,6 +26,7 @@ | ||
#include <sl/operators.hpp> | ||
#include <sl/hash.hpp> | ||
#include <cassert> | ||
+#include <functional> | ||
|
||
namespace sl { | ||
|
||
diff --git a/src/sl/hash.hpp b/src/sl/hash.hpp | ||
index 3093a13..5f5b144 100644 | ||
--- a/src/sl/hash.hpp | ||
+++ b/src/sl/hash.hpp | ||
@@ -24,6 +24,7 @@ | ||
#define SL_HASH_HPP | ||
|
||
#include <sl/utility.hpp> | ||
+#include <functional> | ||
|
||
namespace sl { | ||
|
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
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