[runtime] Revert breaking changes in MonoGHashGCType.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 20 Nov 2015 13:19:16 +0000 (14:19 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 20 Nov 2015 14:16:38 +0000 (15:16 +0100)
Xamarin.iOS and Xamarin.Mac uses this enum, and changing the values
causes us to break.

For Xamarin.Mac apps that do not bundle their mono, this would break
when the user updated their system mono.

mono/metadata/mono-hash.h

index 4626ed48ca03b0d37d73a04b3a47bc44b952e83a..e07f8fadb838dcd599922996f8b077333134d56d 100644 (file)
 #include <mono/metadata/mono-gc.h>
 
 MONO_BEGIN_DECLS
-
+/* do not change the values of this enum */
 typedef enum {
-       MONO_HASH_KEY_GC,
-       MONO_HASH_VALUE_GC,
-       MONO_HASH_KEY_VALUE_GC
+       MONO_HASH_KEY_GC = 1,
+       MONO_HASH_VALUE_GC = 2,
+       MONO_HASH_KEY_VALUE_GC = MONO_HASH_KEY_GC | MONO_HASH_VALUE_GC,
 } MonoGHashGCType;
 
 typedef struct _MonoGHashTable MonoGHashTable;