This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add NV_LITTLE_ENDIAN and NV_BIG_ENDIAN defines.
[perl5.git] / perl.h
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!)