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:
10
internal/aghos/endian_big.go
Normal file
10
internal/aghos/endian_big.go
Normal 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
|
||||
10
internal/aghos/endian_little.go
Normal file
10
internal/aghos/endian_little.go
Normal 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
|
||||
Reference in New Issue
Block a user