Chromium Code Reviews| Index: crypto/encryptor.cc |
| diff --git a/crypto/encryptor.cc b/crypto/encryptor.cc |
| index 53e88f933f4ef206a044dc3956ed5b3d736b3dc7..72b00dbfefb37ec2c07ac3dbc3595336333a17a0 100644 |
| --- a/crypto/encryptor.cc |
| +++ b/crypto/encryptor.cc |
| @@ -18,6 +18,10 @@ |
| #define bswap_16(x) OSSwapInt16(x) |
| #define bswap_32(x) OSSwapInt32(x) |
| #define bswap_64(x) OSSwapInt64(x) |
| +#elif defined(OS_OPENBSD) |
| +#define bswap_16(x) swap16(x) |
| +#define bswap_32(x) swap32(x) |
| +#define bswap_64(x) swap64(x) |
|
wtc
2011/10/18 21:50:26
Just curious: are swap16, swap32, and swap64 compi
Robert Nagy
2011/10/19 07:10:02
They are defined in sys/endian.h so I just include
|
| #else |
| #include <byteswap.h> |
| #endif |