aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp12
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();