blob: b7269b2a1b6ae98e29732df6f58c3ca3f3825000 [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
//
// The contents of this file are subject to the Mozilla Public License
// Version 1.1 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
// License for the specific language governing rights and limitations
// under the License.
//
// The Original Code is MP4v2.
//
// The Initial Developer of the Original Code is Kona Blend.
// Portions created by Kona Blend are Copyright (C) 2008.
// All Rights Reserved.
//
// Contributors:
// Kona Blend, kona8lend@@gmail.com
//
///////////////////////////////////////////////////////////////////////////////
#ifndef MP4V2_PLATFORM_WARNING_H
#define MP4V2_PLATFORM_WARNING_H
///////////////////////////////////////////////////////////////////////////////
// TODO-KB: clean code to avoid disabling warnings
#if defined( __GNUC__ ) && ( __GNUC__ >= 4 ) && ( __GNUC_MINOR__ >= 2 )
# pragma GCC diagnostic ignored "-Wwrite-strings"
#elif defined( _MSC_VER )
# pragma warning( disable: 4244 )
# pragma warning( disable: 4251 )
# pragma warning( disable: 4800 )
# pragma warning( disable: 4996 )
#endif
///////////////////////////////////////////////////////////////////////////////
// this macro is used to mark printf-style functions for GCC to examine
// the format string and arguments and issue warnings if needed
#if defined( __GNUC__ )
# define MP4V2_WFORMAT_PRINTF(i,j) __attribute__((format(__printf__,i,j)))
#else
# define MP4V2_WFORMAT_PRINTF(i,j)
#endif
///////////////////////////////////////////////////////////////////////////////
#endif // MP4V2_PLATFORM_WARNING_H