This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f03a9d3
)
Add NV_LITTLE_ENDIAN and NV_BIG_ENDIAN defines.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 29 Jan 2015 01:41:44 +0000
(20:41 -0500)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 2 Feb 2015 22:02:52 +0000
(17:02 -0500)
perl.h
patch
|
blob
|
blame
|
history
diff --git
a/perl.h
b/perl.h
index
7353dd9
..
3e3dfa9
100644
(file)
--- a/
perl.h
+++ b/
perl.h
@@
-6451,6
+6451,22
@@
extern void moncontrol(int);
#endif /* LONG_DOUBLEKIND */
+#if NVSIZE == DOUBLESIZE
+# ifdef DOUBLE_LITTLE_ENDIAN
+# define NV_LITTLE_ENDIAN
+# endif
+# ifdef DOUBLE_BIG_ENDIAN
+# define NV_BIG_ENDIAN
+# endif
+#elif NVSIZE == LONG_DOUBLESIZE
+# ifdef LONGDOUBLE_LITTLE_ENDIAN
+# define NV_LITTLE_ENDIAN
+# endif
+# ifdef LONGDOUBLE_BIG_ENDIAN
+# define NV_BIG_ENDIAN
+# endif
+#endif
+
/*
(KEEP THIS LAST IN perl.h!)