[sword-devel] Building on ppc64
Jaak Ristioja
jaak at ristioja.ee
Wed Dec 3 00:15:24 MST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The standard way to get signed/unsigned integer types with a specified
width is to
#include <stdint.h> // in C99 and C++03
or
#include <cstdint> // in C++11 and later
and then use the defined int#_t, uint#_t types (or *int_fast#_t,
*int_least#_t, *intptr_t, *intmax_t depending on your needs).
I don't see a reason to define our versions of signed/unsigned integer
types unless they're missing on the target platform. Usually the
standard headers do stuff like this better than we can anyway.
Blessings,
Jaak
On 03.12.2014 06:28, Greg Hellings wrote:
> I'm having some issues building Xiphos on PPC64 architecture. In
> certain files of Xiphos that include Sword files within them the
> definition of __s64 and __u64 in Sword differs from what it is in
> the ppc64 system headers. A build log of it can be found here:
> https://kojipkgs.fedoraproject.org//work/tasks/4464/8274464/build.log
>
> It boils down to sysdata.h in Sword has 44: __extension__ typedef
> __signed__ long long __s64; 45: __extension__ typedef unsigned long
> long __u64;
>
> Which conflicts with /usr/include/asm-generic/int-l64.h which has
> typedef long int __s64; typedef long unsigned int __u64;
>
> Any help on this would be appreciated. Thanks!
>
> --Greg
>
>
> _______________________________________________ sword-devel mailing
> list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel Instructions
> to unsubscribe/change your settings at above page
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJUfriKAAoJECnioa4pvExqCx8P/j9m6+u0kfi/dl+233PqN3vc
+3yi50UpR9G1Oq7Fq2wyDwnIbY1t11y/wkp+Ark4bUqw8DpnRse+is73RIOb6ZLn
YG+/4CubE8gVVnsbBm63r6scVThVZbKwZFcYibAmNvVzw9kSLwG8/ZvaWjfJfkWp
1LM9NbsIPv39g2KNQG8naib0cVeHcdKdvo9oPWjiTXRzluCVr6AQi8f+6NCUoiFA
u2KQwmWawaD5kJSNVbGu4UdgaeUeQoVc2VET33LOJbPYNYqxi0fYJ4VbY1drfeXj
crjtJcxA7lBAzk20FFPHcRxrsD0E5pnGy0259BK1jDgCJHKdNYUtUvhXOgAvGPu7
AZTpNOwWT9u1T3JLY4kRaTtVzUQwt1bu/OvZVjoIU4fb1v/nCyeaSwP23vZ9X9iF
VReC+80ohFm9HleKVR3w/qaateUXXvYmejOe2/uN3Cnakd2aOrntmDIwxtziSVqd
uQGPepl0Fos5BrBqJ5nSijcW1jeSH3eu/MhKNiua3Arta3AjcHWCM5cAVw2BMvRn
f1jqgmwuYwwXGPNyddx4/kkC1znJv0L9jdTRsHhfKXQIA4HHQC4eDWUBAOnMFArl
eTbWj81dKD+ExVaHPphWBimhM66Lrx4DNEp7lH0kjI/VRW7zERzYH6RLQsc9YhZA
lLJTTePcPOC31HzM7+BI
=34ui
-----END PGP SIGNATURE-----
More information about the sword-devel
mailing list