[Mesa-dev] [PATCH 1/3] util: Fix SHA1 implementation on big endian

Roland Scheidegger sroland at vmware.com
Sat Nov 25 22:59:23 UTC 2017


Am 25.11.2017 um 22:58 schrieb Jon Turney:
> On 25/11/2017 04:24, Matt Turner wrote:
>> diff --git a/src/util/u_endian.h b/src/util/u_endian.h
>> index 7bbd7dc215..3d5c006f35 100644
>> --- a/src/util/u_endian.h
>> +++ b/src/util/u_endian.h
>> @@ -67,4 +67,7 @@
>>
>>   #endif
>>
>> +#warn Unknown Endianness for this platform. Assuming little endian
>> +#define PIPE_ARCH_LITTLE_ENDIAN
>> +
>>   #endif
> 
> I'm wondering what compiler this issues a warning on. gcc only seems to
> support #warning, not #warn, but that's not portable to msvc...
#pragma message would probably do but I'm not sure if it's a good idea
to use non-portable preprocessor directives?

Roland


> 
>> ./util/u_endian.h:70:2: error: invalid preprocessing directive #warn
>>  #warn Unknown Endianness for this platform. Assuming little endian
>>   ^
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list