summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpichikaudaykiran <51439150+pichikaudaykiran@users.noreply.github.com>2019-10-09 16:26:06 +0530
committerAnthony Green <green@moxielogic.com>2019-10-09 06:56:06 -0400
commit09f9d856112f2f105337e95e32ba9e2da63f65ae (patch)
tree2b507e861826a1ebd19549773f1037b4cbfc4913
parent55c22092dc54e706a64af3a49ae9d5471a9e8317 (diff)
downloadlibffi-09f9d856112f2f105337e95e32ba9e2da63f65ae.tar.gz
Making the change to correct the comment when SUN (#521)
and GCC are used together
-rw-r--r--testsuite/libffi.call/float2.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/testsuite/libffi.call/float2.c b/testsuite/libffi.call/float2.c
index d583e22..57cd9e3 100644
--- a/testsuite/libffi.call/float2.c
+++ b/testsuite/libffi.call/float2.c
@@ -33,19 +33,20 @@ int main (void)
f = 3.14159;
-#if 1
- /* This is ifdef'd out for now. long double support under SunOS/gcc
- is pretty much non-existent. You'll get the odd bus error in library
- routines like printf(). */
+#if defined(__sun) && defined(__GNUC__)
+ /* long double support under SunOS/gcc is pretty much non-existent.
+ You'll get the odd bus error in library routines like printf() */
+#else
printf ("%Lf\n", ldblit(f));
#endif
+
ld = 666;
ffi_call(&cif, FFI_FN(ldblit), &ld, values);
-#if 1
- /* This is ifdef'd out for now. long double support under SunOS/gcc
- is pretty much non-existent. You'll get the odd bus error in library
- routines like printf(). */
+#if defined(__sun) && defined(__GNUC__)
+ /* long double support under SunOS/gcc is pretty much non-existent.
+ You'll get the odd bus error in library routines like printf() */
+#else
printf ("%Lf, %Lf, %Lf, %Lf\n", ld, ldblit(f), ld - ldblit(f), LDBL_EPSILON);
#endif