Mercurial > libjeffpc
changeset 658:27606cab9971
int: correctly use the big-endian-cpu config #define in tests
Unfortunately, d6a0203a95c2 managed to not fix the endian conversion test.
This did not lead to test failures since the test was never run on a
big-endian system.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sun, 10 Feb 2019 21:26:23 -0500 |
parents | f9ac9ae930d2 |
children | b52774f02cdc |
files | tests/test_endian.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_endian.c Fri Jan 18 11:24:16 2019 -0500 +++ b/tests/test_endian.c Sun Feb 10 21:26:23 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> + * Copyright (c) 2017-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -40,7 +40,7 @@ uint32_t le32; uint64_t le64; -#ifdef CPU_BIG_ENDIAN +#ifdef JEFFPC_CPU_BIG_ENDIAN #define cpu8 be8 #define cpu16 be16 #define cpu32 be32