aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFilip Gawin <[email protected]>2019-01-09 19:42:40 +0100
committerFilip Gawin <[email protected]>2019-01-09 19:42:40 +0100
commit4169c6f37db4fa1cc8e2d052b377af479763a930 (patch)
treeaedd04c62d0edb41fe351d0fa4c94e87d00d71f2 /common
parent8f35f464a1b3ae1b8772a4645941a1fb2fec006e (diff)
Use c++ headers
Diffstat (limited to 'common')
-rw-r--r--common/almalloc.cpp4
-rw-r--r--common/threads.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/common/almalloc.cpp b/common/almalloc.cpp
index da0a1d37..7f13cfba 100644
--- a/common/almalloc.cpp
+++ b/common/almalloc.cpp
@@ -3,8 +3,8 @@
#include "almalloc.h"
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
diff --git a/common/threads.cpp b/common/threads.cpp
index 69989ae4..45f73243 100644
--- a/common/threads.cpp
+++ b/common/threads.cpp
@@ -86,7 +86,7 @@ bool semaphore::try_wait() noexcept
#else
-#include <errno.h>
+#include <cerrno>
#include <pthread.h>
#ifdef HAVE_PTHREAD_NP_H
#include <pthread_np.h>