diff dep/animia/src/util/win32.cc @ 156:cdf79282d647

dep/animia: add VERY early x11 window stuff
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 18:04:04 -0500
parents 8700806c2cc2
children
line wrap: on
line diff
--- a/dep/animia/src/util/win32.cc	Wed Nov 15 15:24:39 2023 -0500
+++ b/dep/animia/src/util/win32.cc	Wed Nov 15 18:04:04 2023 -0500
@@ -1,8 +1,8 @@
 #include "animia/util/win32.h"
 
+#include <shlobj.h>  /* SHGetKnownFolderPath */
+#include <subauth.h> /* UNICODE_STRING */
 #include <windows.h>
-#include <shlobj.h> /* SHGetKnownFolderPath */
-#include <subauth.h> /* UNICODE_STRING */
 
 namespace animia::internal::win32 {
 
@@ -14,7 +14,6 @@
 	if (string.empty())
 		return std::string();
 
-
 	long size = ::WideCharToMultiByte(CP_UTF8, 0, string.c_str(), string.length(), nullptr, 0, nullptr, nullptr);
 	std::string ret = std::string(size, '\0');
 	::WideCharToMultiByte(CP_UTF8, 0, string.c_str(), string.length(), &ret.front(), ret.length(), nullptr, nullptr);
@@ -87,4 +86,4 @@
 	return path.find(windir) == 4;
 }
 
-}
+} // namespace animia::internal::win32