mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
remove __builtin_bswap16
This commit is contained in:
parent
66e096a1c8
commit
8725382c15
@ -1,7 +1,7 @@
|
||||
//
|
||||
// ByteOrder.h
|
||||
//
|
||||
// $Id: //poco/1.4/Foundation/include/Poco/ByteOrder.h#2 $
|
||||
// $Id: //poco/1.4/Foundation/include/Poco/ByteOrder.h#3 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Core
|
||||
@ -137,8 +137,6 @@ inline UInt16 ByteOrder::flipBytes(UInt16 value)
|
||||
{
|
||||
#if defined(POCO_HAVE_MSC_BYTESWAP)
|
||||
return _byteswap_ushort(value);
|
||||
#elif defined(POCO_HAVE_GCC_BYTESWAP)
|
||||
return __builtin_bswap16(value);
|
||||
#else
|
||||
return ((value >> 8) & 0x00FF) | ((value << 8) & 0xFF00);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user