2002-07-08 Radek Doulik <rodo@ximian.com>
[mono.git] / mono / metadata / decimal.h
index a01c0ff7fa63a55508a119f2b20faddd7b6b19c1..f587f3f602972cd2450ea7e43580cda78af44118 100644 (file)
@@ -6,12 +6,21 @@ typedef struct
 {
        union {
                guint32 ss32;
+#if G_BYTE_ORDER != G_LITTLE_ENDIAN
+           struct {
+                   unsigned int sign      : 1;
+                   unsigned int reserved2 : 7;
+                   unsigned int scale     : 8;
+                   unsigned int reserved1 : 16;
+           } signscale;
+#else
            struct {
                    unsigned int reserved1 : 16;
-               unsigned int scale : 8; 
+                   unsigned int scale     : 8;
                    unsigned int reserved2 : 7;
-               unsigned int sign : 1; 
-               } signscale;
+                   unsigned int sign      : 1;
+           } signscale;
+#endif
        } u;
     guint32 hi32;
     guint32 lo32;