Skip to content

Commit 54e7a56

Browse files
committed
test: Handle legacy stdio with atypical double format
When double is not 64 bits, the legacy stdio code doesn't work correctly. This should probably just be disabled in the build script somehow...
1 parent b0e4621 commit 54e7a56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/printf_scanf.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@
9898
# define NO_C99_FORMATS
9999
#endif
100100

101+
#if __SIZEOF_DOUBLE__ != 8
102+
#define NO_FLOATING_POINT
103+
#endif
104+
101105
#ifndef _WANT_IO_LONG_LONG
102106
#define NO_LONG_LONG
103107
#endif

0 commit comments

Comments
 (0)