Build mono runtime under none desktop Windows API family, adjustments and cleanup.
[mono.git] / mono / metadata / mono-endian.c
index 9f59bb20e86c1c9b6f42035106eaa9fdf9a745a2..0a697360e22e3404541a4f645725d78a2d518217 100644 (file)
@@ -1,4 +1,15 @@
+/*
+ * mono-endian.c:
+ *
+ * Author:
+ *     Mono Project (http://www.mono-project.com)
+ *
+ * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
+ */
 #include <config.h>
+#include <mono/utils/mono-compiler.h>
 #include "mono-endian.h"
 
 #if NO_UNALIGNED_ACCESS
@@ -76,30 +87,8 @@ mono_read64 (const unsigned char *x)
        return r.i;
 }
 
-guint64
-mono_read64_swap_words (const unsigned char *x)
-{
-       mono_rint64 r;
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
-       r.c [0] = x [4];
-       r.c [1] = x [5];
-       r.c [2] = x [6];
-       r.c [3] = x [7];
-       r.c [4] = x [0];
-       r.c [5] = x [1];
-       r.c [6] = x [2];
-       r.c [7] = x [3];
-#else
-       r.c [7] = x [4];
-       r.c [6] = x [5];
-       r.c [5] = x [6];
-       r.c [4] = x [7];
-       r.c [3] = x [0];
-       r.c [2] = x [1];
-       r.c [1] = x [2];
-       r.c [0] = x [3];
-#endif
-       return r.i;
-}
+#else /* NO_UNALIGNED_ACCESS */
+
+MONO_EMPTY_SOURCE_FILE (mono_endian);
 
 #endif