Pull request: all: add native endianness, imp Makefile

Merge in DNS/adguard-home from fix-some to master

Squashed commit of the following:

commit 190e9a88d9c0f2bfc597aa61b41dae8b8686158e
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Tue Mar 16 20:50:02 2021 +0300

    all: add native endianness, imp Makefile
This commit is contained in:
Ainar Garipov
2021-03-16 21:00:17 +03:00
parent 3a67cc2c45
commit 67164f89f3
6 changed files with 39 additions and 44 deletions

View File

@@ -0,0 +1,10 @@
// +build mips mips64
// This file is an adapted version of github.com/josharian/native.
package aghos
import "encoding/binary"
// NativeEndian is the native endianness of this system.
var NativeEndian = binary.BigEndian

View File

@@ -0,0 +1,10 @@
// +build amd64 386 arm arm64 mipsle mips64le ppc64le
// This file is an adapted version of github.com/josharian/native.
package aghos
import "encoding/binary"
// NativeEndian is the native endianness of this system.
var NativeEndian = binary.LittleEndian