2015-07-10 16:32:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Google, Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// FIXME: Workaround for skbug.com/4037
|
|
|
|
// Some of our test machines have an older version of clang that does not
|
|
|
|
// have
|
|
|
|
// __builtin_bswap16
|
|
|
|
//
|
|
|
|
// But libwebp expects the builtin. We can change that by using this config.h
|
|
|
|
// file, which replaces the checks in endian_inl.h to decide whether we have
|
|
|
|
// particular builtins.
|
|
|
|
|
2015-08-17 14:49:37 +00:00
|
|
|
#ifdef __builtin_bswap64
|
2015-07-10 16:32:09 +00:00
|
|
|
#define HAVE_BUILTIN_BSWAP64
|
|
|
|
#endif
|
|
|
|
|
2015-08-17 14:49:37 +00:00
|
|
|
#ifdef __builtin_bswap32
|
2015-07-10 16:32:09 +00:00
|
|
|
#define HAVE_BUILTIN_BSWAP32
|
|
|
|
#endif
|
|
|
|
|
2015-08-17 14:49:37 +00:00
|
|
|
#ifdef __builtin_bswap16
|
2015-07-10 16:32:09 +00:00
|
|
|
#define HAVE_BUILTIN_BSWAP16
|
|
|
|
#endif
|