Fix windows build
This commit is contained in:
parent
f592ba6969
commit
cd2b97aac2
@ -38,7 +38,9 @@
|
|||||||
#include "td/utils/StringBuilder.h"
|
#include "td/utils/StringBuilder.h"
|
||||||
#include "td/utils/Time.h"
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#include "td/utils/death_handler.h"
|
#include "td/utils/death_handler.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef USE_READLINE
|
#ifndef USE_READLINE
|
||||||
#include "td/utils/find_boundary.h"
|
#include "td/utils/find_boundary.h"
|
||||||
@ -4345,7 +4347,9 @@ static void on_fatal_error(const char *error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main(int argc, char **argv) {
|
void main(int argc, char **argv) {
|
||||||
|
#ifndef _WIN32
|
||||||
Debug::DeathHandler dh;
|
Debug::DeathHandler dh;
|
||||||
|
#endif
|
||||||
ignore_signal(SignalType::HangUp).ensure();
|
ignore_signal(SignalType::HangUp).ensure();
|
||||||
ignore_signal(SignalType::Pipe).ensure();
|
ignore_signal(SignalType::Pipe).ensure();
|
||||||
set_signal_handler(SignalType::Error, fail_signal).ensure();
|
set_signal_handler(SignalType::Error, fail_signal).ensure();
|
||||||
|
@ -10,14 +10,19 @@
|
|||||||
#include "td/utils/OptionParser.h"
|
#include "td/utils/OptionParser.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/tests.h"
|
#include "td/utils/tests.h"
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#include "td/utils/death_handler.h"
|
#include "td/utils/death_handler.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if TD_EMSCRIPTEN
|
#if TD_EMSCRIPTEN
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
#ifndef _WIN32
|
||||||
Debug::DeathHandler dh;
|
Debug::DeathHandler dh;
|
||||||
|
#endif
|
||||||
td::init_openssl_threads();
|
td::init_openssl_threads();
|
||||||
|
|
||||||
td::TestsRunner &runner = td::TestsRunner::get_default();
|
td::TestsRunner &runner = td::TestsRunner::get_default();
|
||||||
|
Loading…
Reference in New Issue
Block a user