Subject: CVS commit: src/tools/compat
To: None <source-changes@NetBSD.org>
From: Alan Barrett <apb@netbsd.org>
List: source-changes
Date: 08/07/2007 08:22:04
Module Name:	src
Committed By:	apb
Date:		Tue Aug  7 08:22:04 UTC 2007

Modified Files:
	src/tools/compat: compat_defs.h configure.ac

Log Message:
Provide definitions for {be,le}{16,32,64}{enc,dec} if necessary.
This is adapted from the very detailed fix provided by
Giles Lean in PR bin/36678.

Only one simplified implementation is provided, instead of the
two implementations conditional on __GNUC_PREREQ__(2,95) that are
provided in NetBSD's <sys/endian.h>.  The use of memcpy instead of
__builtin__memcpy, and the absence of __inline or __unused, should make
it independent of GCC.


To generate a diff of this commit:
cvs rdiff -r1.59 -r1.60 src/tools/compat/compat_defs.h
cvs rdiff -r1.62 -r1.63 src/tools/compat/configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.