File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Release/tests/Functional/streams Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 23
23
#include " stdafx.h"
24
24
25
25
#ifdef _MS_WINDOWS
26
+ #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
26
27
#include " CppSparseFile.h"
27
28
#endif
29
+ #endif
28
30
29
31
#if defined(__cplusplus_winrt)
30
32
using namespace Windows ::Storage;
@@ -938,8 +940,11 @@ TEST(file_with_one_byte_size)
938
940
VERIFY_ARE_EQUAL (inFile.read (buffer, 1 ).get (), 0 );
939
941
VERIFY_IS_TRUE (inFile.is_eof ());
940
942
}
943
+ #endif
941
944
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
943
948
TEST (read_one_byte_at_4G)
944
949
{
945
950
// Create a file with one byte.
@@ -969,11 +974,9 @@ TEST(read_one_byte_at_4G)
969
974
970
975
VERIFY_ARE_EQUAL (aCharacter, data);
971
976
}
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
975
977
#endif
976
- #elif defined(__x86_64__)
978
+
979
+ #if !defined(_MS_WINDOWS) && defined(__x86_64__)
977
980
978
981
struct TidyStream
979
982
{
You can’t perform that action at this time.
0 commit comments