[decimal] Fixed the Windows build.
authorJoão Matos <joao@tritao.eu>
Sat, 7 Feb 2015 14:21:35 +0000 (14:21 +0000)
committerJoão Matos <joao@tritao.eu>
Sat, 7 Feb 2015 14:21:35 +0000 (14:21 +0000)
Works around the following compile error:

```/Users/triton/Development/mono/mono/metadata/decimal-ms.h:3:16: error: redefinition of 'struct tagDEC'
 typedef struct tagDEC {
                ^
In file included from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unknwn.h:37:0,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objidl.h:477,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objbase.h:66,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/ole2.h:17,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:12,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/winscard.h:10,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/windows.h:97,
                 from /Users/triton/Development/mono/mono/io-layer/io-layer.h:24,
                 from /Users/triton/Development/mono/mono/metadata/process.h:17,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unistd.h:11,
                 from /Users/triton/Development/mono/mono/metadata/icall.c:27:
/Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:452:16: note: originally defined here
 typedef struct tagDEC {
                ^
```

mono/metadata/decimal-ms.h

index 3003a448dfd8cefedead5f498683d72b5105ef2f..d60dd1561e4a2dbbd479e99de454244172f9482a 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef __MONO_DECIMAL_MS_H__
 #define __MONO_DECIMAL_MS_H__
-typedef struct tagDEC {
+typedef struct tagDECIMAL {
     // Decimal.cs treats the first two shorts as one long
     // And they seriable the data so we need to little endian
     // seriliazation