mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Review URL: http://webrtc-codereview.appspot.com/220004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@17 16f28f9a-4ce2-e073-06de-1de4eb20be90
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2011 The LibYuv project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef LIBYUV_SOURCE_COMMON_H_
|
|
#define LIBYUV_SOURCE_COMMON_H_
|
|
|
|
#include "constructor_magic.h"
|
|
|
|
#if defined(_MSC_VER)
|
|
// warning C4355: 'this' : used in base member initializer list
|
|
#pragma warning(disable:4355)
|
|
#endif
|
|
|
|
#ifndef ENABLE_DEBUG
|
|
#define ENABLE_DEBUG _DEBUG
|
|
#endif // !defined(ENABLE_DEBUG)
|
|
|
|
#if ENABLE_DEBUG
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
|
#define __FUNCTION__ ""
|
|
#endif
|
|
#else // !ENABLE_DEBUG
|
|
|
|
#endif // !ENABLE_DEBUG
|
|
|
|
#ifdef __GNUC__
|
|
// Forces compiler to inline, even against its better judgement. Use wisely.
|
|
#define FORCE_INLINE __attribute__((always_inline))
|
|
#else
|
|
#define FORCE_INLINE
|
|
#endif
|
|
|
|
#endif // LIBYUV_SOURCE_COMMON_H_
|