From a8b8a00f68388166215dcb4a1a5ae6fcc30751f9 Mon Sep 17 00:00:00 2001 From: Yijia Zhang <45114178+yjzhang111@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:00:26 -0700 Subject: [PATCH] Fix C25 xbox build failure on SbFileOpen. (#3982) b/302715109 (cherry picked from commit d4f1e954b1b997f65e4badde6685eb103f8e22d0) Change-Id: I2abb8d9ff9fbab0c80d9ce06e23d114f43d3317f --- starboard/shared/win32/file_open.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/starboard/shared/win32/file_open.cc b/starboard/shared/win32/file_open.cc index 2aa61824e32d..d632c234a363 100644 --- a/starboard/shared/win32/file_open.cc +++ b/starboard/shared/win32/file_open.cc @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#if SB_API_VERSION < 17 + #include "starboard/file.h" #include "starboard/shared/win32/file_internal.h" @@ -39,3 +41,5 @@ SbFile SbFileOpen(const char* path, return new SbFilePrivate(file_handle); } + +#endif // SB_API_VERSION < 17