aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2024-05-03 10:51:56 -0700
committerErwin Jansen <jansene@google.com>2024-05-03 10:51:56 -0700
commit89a574cb18a823d62778b174bf0e6924f387d7a8 (patch)
tree4619ed3cc2e8df2054a88bd90bd3742c92de9df2
parent25135e180af8e057f954ab54be2a1b5f5233d641 (diff)
downloadaemu-master.tar.gz
Windows: Fix msvc header dependencyHEADmastermain
This updates the msvc-posix.h include to use the one that actually lives in this package. This makes sure you do not need an external dependency when including these headers on windows. Change-Id: Ia80b5fe2ebdc91c9701616fab88b4e87a950e32d
-rw-r--r--base/FileUtils.cpp2
-rw-r--r--base/StringUtils.cpp2
-rw-r--r--base/System.cpp4
-rw-r--r--base/include/aemu/base/files/ScopedFd.h2
-rw-r--r--base/include/aemu/base/files/TarStream.h2
-rw-r--r--base/include/aemu/base/misc/IpcPipe.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/base/FileUtils.cpp b/base/FileUtils.cpp
index a29415f..393e68e 100644
--- a/base/FileUtils.cpp
+++ b/base/FileUtils.cpp
@@ -21,7 +21,7 @@
#include <sys/types.h>
#include "aemu/base/msvc.h"
#ifdef _MSC_VER
-//#include "msvc-posix.h"
+//#include "aemu/base/msvc.h"
#else
#include <unistd.h>
#endif
diff --git a/base/StringUtils.cpp b/base/StringUtils.cpp
index 3f0d647..78b893e 100644
--- a/base/StringUtils.cpp
+++ b/base/StringUtils.cpp
@@ -18,7 +18,7 @@
#include <string.h>
#ifdef _MSC_VER
-#include "msvc-posix.h"
+#include "aemu/base/msvc.h"
#endif
#include <algorithm>
diff --git a/base/System.cpp b/base/System.cpp
index 9883f3f..7cf64d8 100644
--- a/base/System.cpp
+++ b/base/System.cpp
@@ -39,7 +39,7 @@
#endif // __APPLE__
#ifdef _MSC_VER
-// #include "msvc-posix.h"
+// #include "aemu/base/msvc.h"
// #include <dirent.h>
#else
#include <time.h>
@@ -145,7 +145,7 @@ static const TickCountImpl kTickCount;
namespace android {
namespace base {
-std::string getEnvironmentVariable(const std::string& key) {
+std::string getEnvironmentVariable(const std::string& key) {
#ifdef _WIN32
Win32UnicodeString varname_unicode(key);
const wchar_t* value = _wgetenv(varname_unicode.c_str());
diff --git a/base/include/aemu/base/files/ScopedFd.h b/base/include/aemu/base/files/ScopedFd.h
index 0859acd..1b042af 100644
--- a/base/include/aemu/base/files/ScopedFd.h
+++ b/base/include/aemu/base/files/ScopedFd.h
@@ -18,7 +18,7 @@
#include <errno.h>
#ifdef _MSC_VER
-#include "msvc-posix.h"
+#include "aemu/base/msvc.h"
#else
#include <unistd.h>
#endif
diff --git a/base/include/aemu/base/files/TarStream.h b/base/include/aemu/base/files/TarStream.h
index 4abe1c3..fe9c0c6 100644
--- a/base/include/aemu/base/files/TarStream.h
+++ b/base/include/aemu/base/files/TarStream.h
@@ -20,7 +20,7 @@
#include "android/utils/file_io.h" // for android_mkdir, android_stat
#ifdef _MSC_VER
-#include "msvc-posix.h"
+#include "aemu/base/msvc.h"
using uid_t = uint32_t;
using gid_t = uint32_t;
#endif
diff --git a/base/include/aemu/base/misc/IpcPipe.h b/base/include/aemu/base/misc/IpcPipe.h
index 84ad4dd..6fd0c11 100644
--- a/base/include/aemu/base/misc/IpcPipe.h
+++ b/base/include/aemu/base/misc/IpcPipe.h
@@ -15,7 +15,7 @@
#pragma once
#ifdef _MSC_VER
-#include "msvc-posix.h"
+#include "aemu/base/msvc.h"
#endif
#include <sys/types.h>