Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit std:: name space, seems to make compiler happy #1574

Merged
merged 1 commit into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/traffic_manager/metrics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* limitations under the License.
*/

#include <cmath>

#include "ts/ink_config.h"
#include "ts/ink_memory.h"
#include "ts/Ptr.h"
Expand Down Expand Up @@ -102,7 +104,7 @@ struct Evaluator {
case RECD_FLOAT:
// Lua will eval 0/0 to NaN rather than 0.
rec_value.rec_float = lua_tonumber(L, -1);
if (isnan(rec_value.rec_float)) {
if (std::isnan(rec_value.rec_float)) {
rec_value.rec_float = 0.0;
}
break;
Expand Down
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,6 @@ AC_CHECK_HEADERS([sys/types.h \
stropts.h \
sys/param.h \
sys/sysmacros.h \
math.h \
stdint.h \
stdbool.h \
sysexits.h \
Expand Down
1 change: 1 addition & 0 deletions iocore/cache/CacheTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "P_Cache.h"
#include "P_CacheTest.h"
#include <vector>
#include <cmath>

using namespace std;

Expand Down
1 change: 1 addition & 0 deletions iocore/net/SSLConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "ts/I_Layout.h"

#include <string.h>
#include <cmath>
#include "P_Net.h"
#include "P_SSLConfig.h"
#include "P_SSLUtils.h"
Expand Down
4 changes: 1 addition & 3 deletions lib/ts/ink_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ typedef unsigned int in_addr_t;
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
#ifdef HAVE_MATH_H
#include <math.h>
#endif

#ifdef HAVE_FLOAT_H
#include <float.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion proxy/CoreUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int program_counter = 0;
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include "ts/ink_platform.h"
#include "CoreUtils.h"
#endif /* darwin || freebsd || solaris */
Expand All @@ -112,6 +111,7 @@ int program_counter = 0;
#include "http/HttpSM.h"

#include <cstdlib>
#include <cmath>

bool inTable;
FILE *fp;
Expand Down
2 changes: 0 additions & 2 deletions proxy/CoreUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <elf.h>
#include "ts/DynArray.h"
Expand All @@ -62,7 +61,6 @@ struct core_stack_state {
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>

#define NO_OF_ARGS \
Expand Down
1 change: 0 additions & 1 deletion proxy/congest/CongestionTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*
****************************************************************************/
#include "ts/ink_platform.h"
#include <math.h>
#include "Main.h"
#include "CongestionDB.h"
#include "Congestion.h"
Expand Down
2 changes: 1 addition & 1 deletion proxy/http/HttpTransact.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "ts/ink_platform.h"

#include <strings.h>
#include <math.h>
#include <cmath>

#include "HttpTransact.h"
#include "HttpTransactHeaders.h"
Expand Down
2 changes: 1 addition & 1 deletion proxy/logstats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "LogObject.h"
#include "hdrs/HTTP.h"

#include <math.h>
#include <sys/utsname.h>
#if defined(solaris)
#include <sys/types.h>
Expand All @@ -51,6 +50,7 @@
#include <algorithm>
#include <vector>
#include <list>
#include <cmath>
#include <functional>
#include <fcntl.h>
#include <unordered_map>
Expand Down
2 changes: 1 addition & 1 deletion tools/jtest/jtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#include <poll.h>
#include <netinet/tcp.h>
#include <sys/resource.h>
#include <math.h>
#include <limits.h>
#include <sys/mman.h>
#include <cmath>

#include <inttypes.h>

Expand Down