Skip to content

Commit

Permalink
cube: Substitute math.h with cmath
Browse files Browse the repository at this point in the history
STL's std::abs and std::fabs are not defined in the math header provided by
C but are accessible through either <cmath> or <cstdlib>.

Change the math header to <cmath> so that builds do not fail on macOS.
  • Loading branch information
voidanix committed Apr 29, 2023
1 parent ac75f50 commit 3488029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/cube.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <cmath>

#include <string.h>
#include <stdio.h>
Expand Down

0 comments on commit 3488029

Please sign in to comment.