Skip to content

Commit

Permalink
Fix compile errors with clang++ on Linux
Browse files Browse the repository at this point in the history
Building with GCC fails, but setting CC and CXX to clang/clang++ fixes
the build for me w/o changes to cmake config.
  • Loading branch information
beatgammit committed Apr 8, 2019
1 parent c34a9f4 commit 224c6ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/math/Math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by emilk on 2012-10-15.

#include "Math.hpp"
#include <cmath>
#include <cassert>


Expand Down Expand Up @@ -38,7 +39,7 @@ namespace math

float nextFloat(float arg)
{
if (isnan(arg)) return arg;
if (std::isnan(arg)) return arg;
if (arg==+INF) return +INF; // Can't go higher.
if (arg==0) return std::numeric_limits<float>::denorm_min();

Expand Down
1 change: 1 addition & 0 deletions src/math/Math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef EmiLib_Math_hpp
#define EmiLib_Math_hpp

#include <cstdint>
#include <cmath>
#include <limits>
#include <algorithm>
Expand Down
1 change: 1 addition & 0 deletions src/util/Array3D.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef UTIL_ARRAY_3D_HPP
#define UTIL_ARRAY_3D_HPP

#include <memory>
#include <math/Vec3.hpp>
#include <algorithm> // fill_n

Expand Down

0 comments on commit 224c6ec

Please sign in to comment.