diff options
| author | 2022-05-07 19:49:56 +0100 | |
|---|---|---|
| committer | 2022-05-07 20:18:15 +0100 | |
| commit | 507887f00102742722cbfee63ec89096cff3f868 (patch) | |
| tree | 51b6098502d41ce3d49a78a830301b79259eb116 /src/inspircd.cpp | |
| parent | Remove unnecessary arguments to On(Post)Oper. (diff) | |
Get rid of entrypoint, specify the main function name directly.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
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(); |
