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
Maximilian Federle 2020-05-12 15:49:19 +02:00 committed by GitHub
parent e84fd4649b
commit 771086fa50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -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>