Skip to content

Commit 54b8a72

Browse files
committed
Updating CppSparseFile.h to not be included on WinRT.
1 parent 9658ec2 commit 54b8a72

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Release/tests/Functional/streams/fstreambuf_tests.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
#include "stdafx.h"
2424

2525
#ifdef _MS_WINDOWS
26+
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
2627
#include "CppSparseFile.h"
2728
#endif
29+
#endif
2830

2931
#if defined(__cplusplus_winrt)
3032
using namespace Windows::Storage;
@@ -938,8 +940,11 @@ TEST(file_with_one_byte_size)
938940
VERIFY_ARE_EQUAL(inFile.read(buffer, 1).get(), 0);
939941
VERIFY_IS_TRUE(inFile.is_eof());
940942
}
943+
#endif
941944

942-
#if (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) && defined(_WIN64)
945+
#if defined(_MS_WINDOWS) && (!defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)) && defined(_WIN64)
946+
// since casablanca does not use sparse file apis we're not doing the reverse test (write one byte at 4Gb and verify with std apis)
947+
// because the file created would be too big
943948
TEST(read_one_byte_at_4G)
944949
{
945950
// Create a file with one byte.
@@ -969,11 +974,9 @@ TEST(read_one_byte_at_4G)
969974

970975
VERIFY_ARE_EQUAL(aCharacter, data);
971976
}
972-
973-
// since casablanca does not use sparse file apis we're not doing the reverse test (write one byte at 4Gb and verify with std apis)
974-
// because the file created would be too big
975977
#endif
976-
#elif defined(__x86_64__)
978+
979+
#if !defined(_MS_WINDOWS) && defined(__x86_64__)
977980

978981
struct TidyStream
979982
{

0 commit comments

Comments
 (0)