[Vm-dev] FloatMathPlugin: patch for squeak 4.19.2 fdlibm.h header

stes@PANDORA.BE stes at telenet.be
Sun Dec 13 19:09:27 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


I had to run the file through  tr -d '\015' < fdlibm.h
to delete CR (carriage-return).

Possibly there are combinations of CR and NL in the file.

It may also be because of my download of the file.

But besides that - after deleting CR - I had a svn diff,
and it is close to what I submitted.

I now get

bash-4.4$ svn diff
Index: fdlibm.h
===================================================================
- --- fdlibm.h	(revision 3790)
+++ fdlibm.h	(working copy)
@@ -13,11 +13,13 @@
 /* Sometimes it's necessary to define __LITTLE_ENDIAN explicitly
    but these catch some common cases. */
 
+#ifndef __LITTLE_ENDIAN
 #if defined(i386) || defined(i486) || \
 	defined(intel) || defined(x86) || defined(i86pc) || \
 	defined(__alpha) || defined(__osf__)
 #define __LITTLE_ENDIAN
 #endif
+#endif
 
 #ifdef __LITTLE_ENDIAN


That is OK by me.  This compiles OK now with the SunPRO C compiler.

I checked both 32bit and 64bit because the Makefile first descends in
build and then in build64.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJf1mWgAAoJEAwpOKXMq1MaWtwIAI+a9/PqKASc/zfGE+FoTHvw
4QUmFwB47ssJJG9HGLwbC7XAKQvwGYekGq8jf4POfBCyI7dZpG4ISZwWGb3XTwt3
RcN4xR3QI+/raRS0qGD4ZQaNkBnUFVqpDtq+ruKEboOFPpJpZknqXMFfsM/asPKk
oxKtsxPczbL3W9OoeSgsw4LGHkTZoPzunGpgqv2Re/574OJdse4iy4ln4MO2CcVG
wWBcC2JRtZLqe/yfF+jZQ9kg7OmjBwpC/c3GPCZbeIZipRFXtz5ekvovYNlq0ywB
UC2SEIGt4TyY7tI/JCJ/xsKPkEtUZ/WVA7lXsBkwHRNPzrXNY/xTfmr77yGqhjw=
=Q7tY
-----END PGP SIGNATURE-----


More information about the Vm-dev mailing list