1
0

stdafx.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. #pragma once
  11. // has to be first
  12. #include "openmpt/all/BuildSettings.hpp"
  13. #if defined(MODPLUG_TRACKER)
  14. #if defined(MPT_WITH_MFC)
  15. // cppcheck-suppress missingInclude
  16. #include <afx.h> // MFC core
  17. // cppcheck-suppress missingInclude
  18. #include <afxwin.h> // MFC standard components
  19. // cppcheck-suppress missingInclude
  20. #include <afxext.h> // MFC extensions
  21. // cppcheck-suppress missingInclude
  22. #include <afxcmn.h> // MFC support for Windows Common Controls
  23. // cppcheck-suppress missingInclude
  24. #include <afxcview.h>
  25. // cppcheck-suppress missingInclude
  26. #include <afxdlgs.h>
  27. #ifdef MPT_MFC_FULL
  28. // cppcheck-suppress missingInclude
  29. #include <afxlistctrl.h>
  30. #endif // MPT_MFC_FULL
  31. // cppcheck-suppress missingInclude
  32. #include <afxole.h>
  33. #endif // MPT_WITH_MFC
  34. #if MPT_OS_WINDOWS
  35. #include <windows.h>
  36. #include <windowsx.h>
  37. #include <shlwapi.h>
  38. #include <mmsystem.h>
  39. #endif // MPT_OS_WINDOWS
  40. #endif // MODPLUG_TRACKER
  41. #if MPT_COMPILER_MSVC
  42. #include <intrin.h>
  43. #endif
  44. #include "mpt/base/span.hpp"
  45. #include "mpt/check/libc.hpp"
  46. #if defined(MPT_WITH_MFC)
  47. #include "mpt/check/mfc.hpp"
  48. #endif
  49. #if MPT_OS_WINDOWS
  50. #include "mpt/check/windows.hpp"
  51. #endif
  52. #include "mpt/exception_text/exception_text.hpp"
  53. #include "mpt/out_of_memory/out_of_memory.hpp"
  54. #include "mpt/system_error/system_error.hpp"
  55. #include "openmpt/base/Types.hpp"
  56. #include "openmpt/logging/Logger.hpp"
  57. #include <memory>
  58. #include <new>
  59. // this will be available everywhere
  60. #include "../common/mptBaseMacros.h"
  61. // <version>
  62. // <array>
  63. // <iterator>
  64. // <type_traits>
  65. // <cstddef>
  66. // <cstdint>
  67. #include "../common/mptBaseTypes.h"
  68. // "openmpt/base/Types.hpp"
  69. // "mptBaseMacros.h"
  70. // <array>
  71. // <limits>
  72. // <type_traits>
  73. // <cstdint>
  74. #include "../common/mptAssert.h"
  75. // "mptBaseMacros.h"
  76. #include "../common/mptBaseUtils.h"
  77. // <algorithm>
  78. // <bit>
  79. // <limits>
  80. // <numeric>
  81. // <utility>
  82. #include "../common/mptString.h"
  83. // <algorithm>
  84. // <limits>
  85. // <string>
  86. // <string_view>
  87. // <type_traits>
  88. // <cstring>
  89. #include "../common/mptStringBuffer.h"
  90. #include "../common/mptStringFormat.h"
  91. // <stdexcept>
  92. #include "../common/mptPathString.h"
  93. #include "../common/Logging.h"
  94. // "openmpt/logging/Logger.hpp"
  95. // <atomic>
  96. #include "../common/misc_util.h"
  97. // <stdexcept>
  98. // <optional>
  99. // <vector>
  100. // for std::abs
  101. #include <cstdlib>
  102. #include <stdlib.h>
  103. #include <cmath>
  104. #include <math.h>
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.