From 507887f00102742722cbfee63ec89096cff3f868 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 7 May 2022 19:49:56 +0100 Subject: Get rid of entrypoint, specify the main function name directly. --- src/inspircd.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 817c716ee..91eccafcf 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -718,13 +718,11 @@ void InspIRCd::SetSignal(int signal) s_signal = signal; } -/* On posix systems, the flow of the program starts right here, with - * ENTRYPOINT being a #define that defines main(). On Windows, ENTRYPOINT - * defines smain() and the real main() is in the service code under - * win32service.cpp. This allows the service control manager to control - * the process where we are running as a windows service. - */ -ENTRYPOINT +#ifdef _WIN32 +int smain(int argc, char** argv) +#else +int main(int argc, char** argv) +#endif { new InspIRCd(argc, argv); ServerInstance->Run(); -- cgit v1.3.1-10-gc9f91