From 1f8bc86a7d1c49cd666c5f80d1507e6351a65aa0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 29 Jul 2015 14:02:29 -0700 Subject: [PATCH] Move libutils off AndroidConfig.h. Change-Id: Ia0e4a4f968c640eb44317821d2dc6b195f9f490e --- include/utils/Compat.h | 6 ++++++ libutils/String8.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/include/utils/Compat.h b/include/utils/Compat.h index 7d9631027..c5f9d6a80 100644 --- a/include/utils/Compat.h +++ b/include/utils/Compat.h @@ -75,4 +75,10 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) _rc; }) #endif +#if defined(_WIN32) +#define OS_PATH_SEPARATOR '\\' +#else +#define OS_PATH_SEPARATOR '/' +#endif + #endif /* __LIB_UTILS_COMPAT_H */ diff --git a/libutils/String8.cpp b/libutils/String8.cpp index 3323b82a5..28be60fb5 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -16,6 +16,7 @@ #include +#include #include #include #include