Aegisub/src/agi_pre.h

218 lines
5.8 KiB
C
Raw Normal View History

// Copyright (c) 2006, Rodrigo Braz Monteiro
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of the Aegisub Group nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Aegisub Project http://www.aegisub.org/
/// @file agi_pre.h
/// @brief Precompiled headers include file, including all headers that should be precompiled
/// @ingroup main
///
/// In order to use it, set the project to use this header as precompiled and
/// insert it in every source file (under C/C++ -> Advanced -> Force Includes),
/// then set stdwx.cpp to generate the precompiled header
///
/// @note Make sure that you disable use of precompiled headers on md5.c and
/// MatroskaParser.c, as well as any possible future .c files.
#ifdef __cplusplus
// Block msvc from complaining about not using msvc-specific versions for
// insecure C functions.
#ifdef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS_DEFINED
#else
#define _CRT_SECURE_NO_WARNINGS
#endif
#if !defined(_WIN32) && !defined(CMAKE_BUILD)
#include "../acconf.h"
#endif
2014-05-26 16:15:45 +02:00
#define WIN32_LEAN_AND_MEAN
2014-05-26 16:15:45 +02:00
// Common C
#include <cassert>
#include <cerrno>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdint>
#include <ctime>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4996)
#endif
// Common C++
#include <algorithm>
#include <array>
2014-05-26 16:15:45 +02:00
#include <functional>
#include <iterator>
#include <limits>
2014-05-26 16:15:45 +02:00
#include <list>
#include <map>
#include <memory>
#include <set>
2014-05-26 16:15:45 +02:00
#include <string>
#include <type_traits>
#include <type_traits>
2014-05-26 16:15:45 +02:00
#include <typeinfo>
#include <unordered_map>
#include <utility>
2014-05-26 16:15:45 +02:00
#include <vector>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#ifdef _WIN32
#include <objbase.h>
#include <mmsystem.h>
#else
#include <sys/param.h>
#endif
2014-05-26 16:15:45 +02:00
// Boost
#include <boost/container/list.hpp>
#include <boost/flyweight.hpp>
#include <boost/io/ios_state.hpp>
#include <boost/range/adaptor/filtered.hpp>
2014-05-26 16:15:45 +02:00
#include <boost/range/adaptor/transformed.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/irange.hpp>
#include <boost/regex.hpp>
#define BOOST_NO_SCOPED_ENUMS
#include <boost/filesystem/path.hpp>
#undef BOOST_NO_SCOPED_ENUMS
#include <boost/interprocess/streams/bufferstream.hpp>
#include <boost/interprocess/streams/vectorstream.hpp>
// wxWidgets headers
2014-05-26 16:15:45 +02:00
#include <wx/defs.h> // Leave this first.
#include <wx/accel.h>
#include <wx/app.h>
#include <wx/arrstr.h>
#include <wx/bitmap.h>
#include <wx/bmpbuttn.h>
2014-05-26 16:15:45 +02:00
#include <wx/brush.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/checklst.h>
#include <wx/choicdlg.h>
#include <wx/choice.h>
#include <wx/clipbrd.h>
#include <wx/colour.h>
#include <wx/combobox.h>
2014-05-26 16:15:45 +02:00
#include <wx/containr.h>
#include <wx/control.h>
2014-05-26 16:15:45 +02:00
#include <wx/ctrlsub.h>
#include <wx/cursor.h>
#include <wx/dataobj.h>
#include <wx/dc.h>
#include <wx/dcbuffer.h>
#include <wx/dcclient.h>
#include <wx/dcmemory.h>
2014-05-26 16:15:45 +02:00
#include <wx/dcprint.h>
#include <wx/dialog.h>
#include <wx/dirdlg.h>
#include <wx/dnd.h>
2014-05-26 16:15:45 +02:00
#include <wx/dynarray.h>
#include <wx/event.h>
#include <wx/file.h>
#include <wx/filedlg.h>
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/font.h>
#include <wx/frame.h>
#include <wx/gdicmn.h>
2014-05-26 16:15:45 +02:00
#include <wx/gdiobj.h>
#include <wx/glcanvas.h>
2014-05-26 16:15:45 +02:00
#include <wx/hash.h>
#include <wx/hashmap.h>
#include <wx/icon.h>
#include <wx/image.h>
#include <wx/intl.h>
2014-05-26 16:15:45 +02:00
#include <wx/layout.h>
#include <wx/list.h>
#include <wx/listbox.h>
#include <wx/listctrl.h>
#include <wx/log.h>
2014-05-26 16:15:45 +02:00
#include <wx/math.h>
#include <wx/memory.h>
#include <wx/menu.h>
#include <wx/menuitem.h>
2014-05-26 16:15:45 +02:00
#include <wx/module.h>
#include <wx/msgdlg.h>
2014-05-26 16:15:45 +02:00
#include <wx/object.h>
#include <wx/palette.h>
#include <wx/panel.h>
2014-05-26 16:15:45 +02:00
#include <wx/pen.h>
#include <wx/power.h>
#include <wx/radiobox.h>
#include <wx/radiobut.h>
2014-05-26 16:15:45 +02:00
#include <wx/region.h>
#include <wx/sashwin.h>
2014-05-26 16:15:45 +02:00
#include <wx/scrolwin.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h>
#include <wx/statbox.h>
#include <wx/statline.h>
#include <wx/stattext.h>
2014-05-26 16:15:45 +02:00
#include <wx/statusbr.h>
#include <wx/stc/stc.h>
#include <wx/stopwatch.h>
#include <wx/strconv.h>
2014-05-26 16:15:45 +02:00
#include <wx/stream.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/thread.h>
#include <wx/timer.h>
#include <wx/toolbar.h>
2014-05-26 16:15:45 +02:00
#include <wx/toplevel.h>
#include <wx/utils.h>
#include <wx/valgen.h>
2014-05-26 16:15:45 +02:00
#include <wx/validate.h>
#include <wx/valtext.h>
#include <wx/window.h>
2014-05-26 16:15:45 +02:00
#include <wx/wxcrt.h>
#include <wx/wxcrtvararg.h>
#ifdef HAVE_OPENGL_GL_H
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#ifndef _CRT_SECURE_NO_WARNINGS_DEFINED
#undef _CRT_SECURE_NO_WARNINGS
#endif
#endif