Use Bourne shell redirect 2>&1
[mono.git] / mono / metadata / abi-details.h
index ca23cfafcc7065b2ecb39bb51f0eafab09648537..d4d00deff44394764a3206f2a1149415751a0057 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright 2014 Xamarin Inc
  */
 #ifndef __MONO_METADATA_ABI_DETAILS_H__
@@ -25,7 +25,11 @@ enum {
 #ifdef USED_CROSS_COMPILER_OFFSETS
 #define MONO_STRUCT_OFFSET(struct,field) MONO_OFFSET_ ## struct ## _ ## field
 #else
+#if defined(HAS_CROSS_COMPILER_OFFSETS) || defined(MONO_CROSS_COMPILE)
 #define MONO_STRUCT_OFFSET(struct,field) (MONO_OFFSET_ ## struct ## _ ## field == -1, G_STRUCT_OFFSET (struct,field))
+#else
+#define MONO_STRUCT_OFFSET(struct,field) G_STRUCT_OFFSET (struct,field)
+#endif
 #endif
 
 #endif