Use C++ instead of C versions of standard library headers.
We use std::fabs, but <math.h> doesn't provide it; it worked by accident. Include <cmath> that provides std::fabs, and switch all other headers to their C++ variants, too.pull/612/head
parent
e84fd4649b
commit
771086fa50
|
@ -7,16 +7,16 @@
|
||||||
#ifndef SOLVESPACE_H
|
#ifndef SOLVESPACE_H
|
||||||
#define SOLVESPACE_H
|
#define SOLVESPACE_H
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <setjmp.h>
|
#include <csetjmp>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
Loading…
Reference in New Issue