Use C++ headers (#949)

This commit is contained in:
Ayaz Salikhov 2017-09-07 14:02:44 +03:00 committed by Daniel Marjamäki
parent 64eccd780c
commit 2604156fe7
2 changed files with 3 additions and 4 deletions

View File

@ -34,6 +34,8 @@
#include "threadexecutor.h"
#include "utils.h"
#include <csignal>
#include <cstdio>
#include <cstdlib> // EXIT_SUCCESS and EXIT_FAILURE
#include <cstring>
#include <iostream>
@ -43,9 +45,7 @@
#if !defined(NO_UNIX_SIGNAL_HANDLING) && defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__OS2__)
#define USE_UNIX_SIGNAL_HANDLING
#include <signal.h>
#include <unistd.h>
#include <cstdio>
#if defined(__APPLE__)
# define _XOPEN_SOURCE // ucontext.h APIs can only be used on Mac OSX >= 10.7 if _XOPEN_SOURCE is defined
# include <ucontext.h>

View File

@ -26,6 +26,7 @@
#include "suppressions.h"
#include <algorithm>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <iostream>
@ -37,12 +38,10 @@
#ifdef THREADING_MODEL_FORK
#include <sys/select.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#endif
#ifdef THREADING_MODEL_WIN
#include <errno.h>
#include <process.h>
#include <windows.h>
#endif