diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | 4ccb2168457fb4c36c932d678dea9a872e2ce132 (patch) | |
tree | 8fd095cf3170fba4d3a97fad88cec43951a9ce94 /src | |
parent | 46b82d31880d26872478d6ce8471f997db435e8e (diff) |
Fix old-style #include for legacy C headers
Diffstat (limited to 'src')
-rw-r--r-- | src/hooks.cc | 2 | ||||
-rw-r--r-- | src/main-gcu.cc | 2 | ||||
-rw-r--r-- | src/main-gtk2.cc | 2 | ||||
-rw-r--r-- | src/main-sdl.cc | 4 | ||||
-rw-r--r-- | src/main-x11.cc | 2 | ||||
-rw-r--r-- | src/q_god.cc | 2 | ||||
-rw-r--r-- | src/z-rand.cc | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/src/hooks.cc b/src/hooks.cc index 16bd144d..6d755c5e 100644 --- a/src/hooks.cc +++ b/src/hooks.cc @@ -8,7 +8,7 @@ #include "hooks.hpp" #include <algorithm> -#include <assert.h> +#include <cassert> #include <unordered_map> #include <vector> diff --git a/src/main-gcu.cc b/src/main-gcu.cc index bdcd15f0..54776d9d 100644 --- a/src/main-gcu.cc +++ b/src/main-gcu.cc @@ -45,7 +45,7 @@ #include <fcntl.h> #include <boost/algorithm/string/predicate.hpp> -#include <limits.h> +#include <climits> using boost::algorithm::starts_with; diff --git a/src/main-gtk2.cc b/src/main-gtk2.cc index 92ea75e1..c2657f5c 100644 --- a/src/main-gtk2.cc +++ b/src/main-gtk2.cc @@ -51,7 +51,7 @@ #include <sys/stat.h> #include <unistd.h> #include <dirent.h> -#include <assert.h> +#include <cassert> #include <boost/algorithm/string/predicate.hpp> diff --git a/src/main-sdl.cc b/src/main-sdl.cc index 4ff6d97c..b69d95c9 100644 --- a/src/main-sdl.cc +++ b/src/main-sdl.cc @@ -33,8 +33,8 @@ #include <SDL_image.h> #include <SDL_ttf.h> -#include <assert.h> -#include <math.h> +#include <cassert> +#include <cmath> #include <boost/algorithm/string/predicate.hpp> diff --git a/src/main-x11.cc b/src/main-x11.cc index e847a4a6..b3e2b4dd 100644 --- a/src/main-x11.cc +++ b/src/main-x11.cc @@ -113,7 +113,7 @@ #include <sys/stat.h> #include <unistd.h> #include <dirent.h> -#include <limits.h> +#include <climits> #include <sys/time.h> #include <boost/algorithm/string/predicate.hpp> diff --git a/src/q_god.cc b/src/q_god.cc index c8963088..b528f946 100644 --- a/src/q_god.cc +++ b/src/q_god.cc @@ -24,7 +24,7 @@ #include "z-rand.hpp" #include "z-term.h" -#include <assert.h> +#include <cassert> #include <fmt/format.h> #define cquest (quest[QUEST_GOD]) diff --git a/src/z-rand.cc b/src/z-rand.cc index a35eb08b..42e93547 100644 --- a/src/z-rand.cc +++ b/src/z-rand.cc @@ -4,7 +4,7 @@ #include "z-rand.hpp" -#include <assert.h> +#include <cassert> #include <cstdint> #include <limits> #include <random> |