| 1 |
/* |
| 2 |
* StdAfx.h |
| 3 |
* -------- |
| 4 |
* Purpose: Include file for standard system include files, or project specific include files that are used frequently, but are changed infrequently. Also includes the global build settings from openmpt/all/BuildSettings.hpp. |
| 5 |
* Notes : (currently none) |
| 6 |
* Authors: Olivier Lapicque |
| 7 |
* OpenMPT Devs |
| 8 |
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details. |
| 9 |
*/ |
| 10 |
|
| 11 |
|
| 12 |
#pragma once |
| 13 |
|
| 14 |
|
| 15 |
// has to be first |
| 16 |
#include "openmpt/all/BuildSettings.hpp" |
| 17 |
#include "openmpt/all/PlatformFixes.hpp" |
| 18 |
|
| 19 |
|
| 20 |
#if defined(MODPLUG_TRACKER) |
| 21 |
|
| 22 |
#if defined(MPT_WITH_MFC) |
| 23 |
|
| 24 |
// cppcheck-suppress missingInclude |
| 25 |
#include <afx.h> // MFC core |
| 26 |
// cppcheck-suppress missingInclude |
| 27 |
#include <afxwin.h> // MFC standard components |
| 28 |
// cppcheck-suppress missingInclude |
| 29 |
#include <afxext.h> // MFC extensions |
| 30 |
// cppcheck-suppress missingInclude |
| 31 |
#include <afxcmn.h> // MFC support for Windows Common Controls |
| 32 |
// cppcheck-suppress missingInclude |
| 33 |
#include <afxcview.h> |
| 34 |
// cppcheck-suppress missingInclude |
| 35 |
#include <afxdlgs.h> |
| 36 |
#ifndef _AFX_NO_MFC_CONTROLS_IN_DIALOGS |
| 37 |
// cppcheck-suppress missingInclude |
| 38 |
#include <afxlistctrl.h> |
| 39 |
#endif // !_AFX_NO_MFC_CONTROLS_IN_DIALOGS |
| 40 |
// cppcheck-suppress missingInclude |
| 41 |
#include <afxole.h> |
| 42 |
|
| 43 |
#endif // MPT_WITH_MFC |
| 44 |
|
| 45 |
#if MPT_OS_WINDOWS |
| 46 |
|
| 47 |
#include <windows.h> |
| 48 |
#include <windowsx.h> |
| 49 |
#include <shlwapi.h> |
| 50 |
#include <mmsystem.h> |
| 51 |
|
| 52 |
#endif // MPT_OS_WINDOWS |
| 53 |
|
| 54 |
#endif // MODPLUG_TRACKER |
| 55 |
|
| 56 |
|
| 57 |
#if MPT_COMPILER_MSVC |
| 58 |
#include <intrin.h> |
| 59 |
#endif |
| 60 |
|
| 61 |
|
| 62 |
#include "mpt/check/compiler.hpp" |
| 63 |
#include "mpt/check/libc.hpp" |
| 64 |
#include "mpt/check/libcxx.hpp" |
| 65 |
#if defined(MPT_WITH_MFC) |
| 66 |
#include "mpt/check/mfc.hpp" |
| 67 |
#endif |
| 68 |
#if MPT_OS_WINDOWS |
| 69 |
#include "mpt/check/windows.hpp" |
| 70 |
#endif |
| 71 |
|
| 72 |
#include "mpt/base/span.hpp" |
| 73 |
#include "mpt/exception/exception.hpp" |
| 74 |
#include "mpt/exception/exception_text.hpp" |
| 75 |
#include "mpt/out_of_memory/out_of_memory.hpp" |
| 76 |
#include "mpt/string/types.hpp" |
| 77 |
#include "mpt/system_error/system_error.hpp" |
| 78 |
|
| 79 |
#include "openmpt/base/Types.hpp" |
| 80 |
#include "openmpt/logging/Logger.hpp" |
| 81 |
|
| 82 |
|
| 83 |
#include <memory> |
| 84 |
#include <new> |
| 85 |
|
| 86 |
|
| 87 |
// this will be available everywhere |
| 88 |
|
| 89 |
#include "../common/mptBaseMacros.h" |
| 90 |
// <version> |
| 91 |
// <array> |
| 92 |
// <iterator> |
| 93 |
// <type_traits> |
| 94 |
// <cstddef> |
| 95 |
// <cstdint> |
| 96 |
|
| 97 |
#include "../common/mptBaseTypes.h" |
| 98 |
// "openmpt/base/Types.hpp" |
| 99 |
// "mptBaseMacros.h" |
| 100 |
// <array> |
| 101 |
// <limits> |
| 102 |
// <type_traits> |
| 103 |
// <cstdint> |
| 104 |
|
| 105 |
#include "../common/mptAssert.h" |
| 106 |
// "mptBaseMacros.h" |
| 107 |
|
| 108 |
#include "../common/mptBaseUtils.h" |
| 109 |
// <algorithm> |
| 110 |
// <bit> |
| 111 |
// <limits> |
| 112 |
// <numeric> |
| 113 |
// <utility> |
| 114 |
|
| 115 |
#include "../common/mptString.h" |
| 116 |
// <algorithm> |
| 117 |
// <limits> |
| 118 |
// <string> |
| 119 |
// <string_view> |
| 120 |
// <type_traits> |
| 121 |
// <cstring> |
| 122 |
|
| 123 |
#include "../common/mptStringBuffer.h" |
| 124 |
|
| 125 |
#include "../common/mptStringFormat.h" |
| 126 |
// <stdexcept> |
| 127 |
|
| 128 |
#include "../common/mptPathString.h" |
| 129 |
|
| 130 |
#include "../common/Logging.h" |
| 131 |
// "openmpt/logging/Logger.hpp" |
| 132 |
// <atomic> |
| 133 |
|
| 134 |
#include "../common/misc_util.h" |
| 135 |
// <stdexcept> |
| 136 |
// <optional> |
| 137 |
// <vector> |
| 138 |
|
| 139 |
// for std::abs |
| 140 |
#include <cstdlib> |
| 141 |
#include <stdlib.h> |
| 142 |
#include <cmath> |
| 143 |
#include <math.h> |
| 144 |
|
| 145 |
|
| 146 |
//{{AFX_INSERT_LOCATION}} |
| 147 |
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. |