Remove definitions for __LITTLE_ENDIAN, __BIG_ENDIAN, and __BYTE_ORDER (#2807)

These are already defined in /usr/include/endian.h for all tested configurations
Related to #2797
This commit is contained in:
Paulo Matos 2019-09-04 19:32:02 +02:00 committed by GitHub
parent 36e00806de
commit 8c049d914e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,14 +48,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include <string.h>
#include <unistd.h>
/* FIXME: hard-wired */
# define __LITTLE_ENDIAN 1234
# define __BIG_ENDIAN 4321
# define __BYTE_ORDER __LITTLE_ENDIAN
# define __BYTE_ORDER __LITTLE_ENDIAN
#ifdef __GNUC__
# define UNUSED __attribute__((unused))
# define NORETURN __attribute__((noreturn))