changeset 140:1e696863b54c

dep/animia: remove superfluous includes #include <windows.h> in the main file LMFAO
author Paper <mrpapersonic@gmail.com>
date Sun, 12 Nov 2023 16:54:58 -0500
parents 478f3b366199
children 14626691d0e1
files dep/animia/src/animia.cc dep/animia/src/fd/bsd.cc dep/animia/src/fd/linux.cc dep/animia/src/fd/win32.cc dep/animia/src/strategist.cc
diffstat 5 files changed, 18 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/dep/animia/src/animia.cc	Sun Nov 12 16:43:07 2023 -0500
+++ b/dep/animia/src/animia.cc	Sun Nov 12 16:54:58 2023 -0500
@@ -1,8 +1,6 @@
 #include <string>
 #include <vector>
 
-#include <windows.h>
-
 #include "animia.h"
 #include "animia/strategies.h"
 #include "animia/types.h"
@@ -33,8 +31,6 @@
 
 }
 
-#include <iostream>
-
 namespace animia {
 
 static bool ProcessInPlayers(const std::vector<Player>& players, const std::string& name, Player& player_) {
@@ -73,4 +69,4 @@
 	return internal::ApplyStrategies(results);
 }
 
-}
\ No newline at end of file
+}
--- a/dep/animia/src/fd/bsd.cc	Sun Nov 12 16:43:07 2023 -0500
+++ b/dep/animia/src/fd/bsd.cc	Sun Nov 12 16:54:58 2023 -0500
@@ -3,14 +3,16 @@
  *  - this ONLY* supports OS X as of now
  *     (*there is some FreeBSD support code)
  **/
-#include <fcntl.h>
+#include <unordered_map>
+#include <vector>
 #include <iostream>
 #include <string>
+
+#include <fcntl.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
 #include <sys/user.h>
-#include <unordered_map>
-#include <vector>
+
 #ifdef __FreeBSD__
 #	include <libutil.h>
 #elif defined(__APPLE__)
--- a/dep/animia/src/fd/linux.cc	Sun Nov 12 16:43:07 2023 -0500
+++ b/dep/animia/src/fd/linux.cc	Sun Nov 12 16:54:58 2023 -0500
@@ -1,18 +1,19 @@
+#include "animia/util.h"
+
 #include <algorithm>
-#include <fcntl.h>
 #include <filesystem>
 #include <fstream>
 #include <iostream>
 #include <sstream>
 #include <string>
-#include <sys/stat.h>
-#include <unistd.h>
 #include <unordered_map>
 #include <vector>
 #include <cstring>
+
+#include <fcntl.h>
 #include <dirent.h>
-
-#include "animia/util.h"
+#include <sys/stat.h>
+#include <unistd.h>
 
 #define PROC_LOCATION "/proc"
 
--- a/dep/animia/src/fd/win32.cc	Sun Nov 12 16:43:07 2023 -0500
+++ b/dep/animia/src/fd/win32.cc	Sun Nov 12 16:54:58 2023 -0500
@@ -4,19 +4,20 @@
  *
  **/
 #include "animia/fd/win32.h"
+
+#include <stdexcept>
+#include <string>
+#include <unordered_map>
+#include <vector>
+
 #include <fileapi.h>
 #include <handleapi.h>
-#include <iostream>
 #include <libloaderapi.h>
 #include <ntdef.h>
 #include <psapi.h>
 #include <shlobj.h>
-#include <stdexcept>
-#include <string>
 #include <stringapiset.h>
 #include <tlhelp32.h>
-#include <unordered_map>
-#include <vector>
 #include <windows.h>
 #include <winternl.h>
 
--- a/dep/animia/src/strategist.cc	Sun Nov 12 16:43:07 2023 -0500
+++ b/dep/animia/src/strategist.cc	Sun Nov 12 16:54:58 2023 -0500
@@ -2,7 +2,6 @@
 #include "animia/util.h"
 #include "animia/fd.h"
 #include "animia.h"
-#include <iostream>
 
 namespace animia::internal {