mirror of
https://github.com/anope/anope.git
synced 2026-07-05 01:53:13 +02:00
Windows
This commit is contained in:
+7
-9
@@ -27,10 +27,9 @@
|
||||
#include "timers.h"
|
||||
#include "modules.h"
|
||||
|
||||
// getrlimit.
|
||||
#ifndef _WIN32
|
||||
# include <sys/time.h>
|
||||
# include <sys/resource.h>
|
||||
#ifdef _WIN32
|
||||
# include <process.h>
|
||||
# define execve _execve
|
||||
#endif
|
||||
|
||||
/******** Global variables! ********/
|
||||
@@ -47,11 +46,6 @@ bool noexpire = false; /* -noexpire */
|
||||
bool protocoldebug = false; /* -protocoldebug */
|
||||
Anope::string binary_dir; /* Used to store base path for Anope */
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <process.h>
|
||||
# define execve _execve
|
||||
#endif
|
||||
|
||||
/* Set to 1 if we are to quit */
|
||||
bool quitting = false;
|
||||
int return_code = 0;
|
||||
@@ -316,6 +310,10 @@ int main(int ac, char **av, char **envp)
|
||||
/* Clean out the module runtime directory prior to running, just in case files were left behind during a previous run */
|
||||
ModuleManager::CleanupRuntimeDirectory();
|
||||
|
||||
#ifdef _WIN32
|
||||
OnStartup();
|
||||
#endif
|
||||
|
||||
try
|
||||
{
|
||||
/* General initialization first */
|
||||
|
||||
Reference in New Issue
Block a user