aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
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>