This should make some scripts and IDEs happier.
--- /dev/null
+ o Code simplification and refactoring:
+ - Wrap windows-only C files inside '#ifdef _WIN32' so that tools that
+ try to scan or compile every file on Unix won't decide that they
+ are broken.
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#ifdef _WIN32
+
#include "compat.h"
#include <windows.h>
#include <process.h>
set_main_thread();
}
+#endif
+
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#ifdef _WIN32
+
#include "or.h"
#include "config.h"
#include "main.h"
return 0;
}
+#endif
+