Search
SailfishOS Open Build Service
>
Projects
>
home:MartinK
:
sailfish
:
geo
>
lcms2
> lcms-endian.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lcms-endian.patch of Package lcms2
--- include/lcms2.h.orig 2010-05-18 16:11:48.852037802 +0200 +++ include/lcms2.h 2010-05-18 16:12:22.116041439 +0200 @@ -30,8 +30,10 @@ // ********** Configuration toggles **************************************** -// Uncomment this one if you are using big endian machines -// #define CMS_USE_BIG_ENDIAN 1 +#include <endian.h> +#if __BYTE_ORDER == __BIG_ENDIAN +#define USE_BIG_ENDIAN 1 +#endif // Uncomment this one if your compiler/machine does NOT support the // "long long" type.