Browse Source

Modernize deprecated headers

pull/1689/head
Jmgr 5 years ago committed by Anders Jenbo
parent
commit
c33182d6de
  1. 2
      Source/DiabloUI/diabloui.h
  2. 2
      Source/DiabloUI/fonts.h
  3. 2
      Source/DiabloUI/scrollbar.h
  4. 2
      Source/DiabloUI/ttf_render_wrapped.h
  5. 2
      Source/automap.h
  6. 2
      Source/control.h
  7. 2
      Source/controls/axis_direction.h
  8. 2
      Source/controls/controller_buttons.h
  9. 1
      Source/controls/game_controls.h
  10. 2
      Source/controls/menu_controls.h
  11. 2
      Source/controls/plrctrls.h
  12. 2
      Source/cursor.h
  13. 2
      Source/dead.h
  14. 2
      Source/diablo.h
  15. 2
      Source/dvlnet/packet.h
  16. 2
      Source/effects.h
  17. 2
      Source/encrypt.h
  18. 2
      Source/engine.h
  19. 2
      Source/error.h
  20. 2
      Source/gendung.h
  21. 2
      Source/gmenu.h
  22. 2
      Source/interfac.cpp
  23. 2
      Source/interfac.h
  24. 2
      Source/inv.h
  25. 4
      Source/itemdat.h
  26. 2
      Source/items.h
  27. 18
      Source/miniwin/miniwin.h
  28. 2
      Source/misdat.h
  29. 2
      Source/missiles.h
  30. 2
      Source/monstdat.h
  31. 2
      Source/monster.h
  32. 2
      Source/mpqapi.h
  33. 2
      Source/msg.h
  34. 2
      Source/multi.h
  35. 2
      Source/objdat.h
  36. 2
      Source/objects.h
  37. 2
      Source/options.h
  38. 2
      Source/pack.h
  39. 4
      Source/platform/ctr/keyboard.cpp
  40. 4
      Source/platform/ctr/system.cpp
  41. 4
      Source/platform/switch/keyboard.cpp
  42. 2
      Source/platform/switch/network.cpp
  43. 3
      Source/platform/vita/keyboard.cpp
  44. 2
      Source/player.cpp
  45. 2
      Source/player.h
  46. 2
      Source/plrmsg.h
  47. 2
      Source/quests.h
  48. 2
      Source/scrollrt.h
  49. 2
      Source/sha.h
  50. 2
      Source/sound.h
  51. 2
      Source/spelldat.h
  52. 2
      Source/storm/storm.h
  53. 2
      Source/sync.h
  54. 2
      Source/themes.h
  55. 2
      Source/tmsg.h
  56. 2
      Source/towners.h
  57. 6
      Source/utils/sdl2_to_1_2_backports.h
  58. 6
      Source/utils/stubs.h
  59. 2
      test/pack_test.cpp
  60. 2
      test/writehero_test.cpp

2
Source/DiabloUI/diabloui.h

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#include <array>
#include <cstddef>
#include <SDL.h>

2
Source/DiabloUI/fonts.h

@ -1,7 +1,7 @@
#pragma once
#include <SDL_ttf.h>
#include <stdint.h>
#include <cstdint>
#include "DiabloUI/art.h"

2
Source/DiabloUI/scrollbar.h

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#include "DiabloUI/art.h"
#include "DiabloUI/ui_item.h"

2
Source/DiabloUI/ttf_render_wrapped.h

@ -1,7 +1,7 @@
#pragma once
#include <SDL_ttf.h>
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/automap.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "gendung.h"

2
Source/control.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "spelldat.h"

2
Source/controls/axis_direction.h

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/controls/controller_buttons.h

@ -1,7 +1,7 @@
#pragma once
// Unifies joystick, gamepad, and keyboard controller APIs.
#include <stdint.h>
#include <cstdint>
namespace devilution {

1
Source/controls/game_controls.h

@ -1,6 +1,5 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#include <SDL.h>

2
Source/controls/menu_controls.h

@ -1,7 +1,7 @@
#pragma once
#include <SDL.h>
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/controls/plrctrls.h

@ -1,7 +1,7 @@
#pragma once
// Controller actions implementation
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/cursor.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"

2
Source/dead.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"

2
Source/diablo.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#ifdef _DEBUG
#include "monstdat.h"

2
Source/dvlnet/packet.h

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#include <string>
#include <memory>
#include <array>

2
Source/effects.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "sound.h"

2
Source/encrypt.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"

2
Source/engine.h

@ -16,7 +16,7 @@
#include <cstddef>
#include <cstdlib>
#include <SDL.h>
#include <stdint.h>
#include <cstdint>
#ifdef USE_SDL1
#include "utils/sdl2_to_1_2_backports.h"

2
Source/error.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"

2
Source/gendung.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "scrollrt.h"

2
Source/gmenu.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"

2
Source/interfac.cpp

@ -4,7 +4,7 @@
* Implementation of load screens.
*/
#include <stdint.h>
#include <cstdint>
#include "control.h"
#include "DiabloUI/art_draw.h"

2
Source/interfac.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "utils/ui_fwd.h"

2
Source/inv.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "items.h"
#include "palette.h"

4
Source/itemdat.h

@ -5,8 +5,8 @@
*/
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <cstdint>
#include "objdat.h"
#include "spelldat.h"

2
Source/items.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "itemdat.h"

18
Source/miniwin/miniwin.h

@ -1,14 +1,14 @@
#pragma once
#include <stdint.h>
#include <ctype.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cstdint>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
namespace devilution {

2
Source/misdat.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "effects.h"

2
Source/missiles.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"
#include "engine.h"

2
Source/monstdat.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/monster.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "miniwin/miniwin.h"

2
Source/mpqapi.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"

2
Source/msg.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "quests.h"
#include "objects.h"

2
Source/multi.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "msg.h"

2
Source/objdat.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "gendung.h"

2
Source/objects.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "objdat.h"
#include "textdat.h"

2
Source/options.h

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <cstdint>
#include "pack.h"

2
Source/pack.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "player.h"
#include "inv.h"

4
Source/platform/ctr/keyboard.cpp

@ -1,5 +1,5 @@
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
#include "platform/ctr/keyboard.h"

4
Source/platform/ctr/system.cpp

@ -1,5 +1,5 @@
#include <stdlib.h>
#include <stdio.h>
#include <cstdlib>
#include <cstdio>
#include <3ds.h>
#include "platform/ctr/system.h"

4
Source/platform/switch/keyboard.cpp

@ -1,6 +1,4 @@
#include <string.h>
#include <stdbool.h>
#include <cstring>
#include <switch.h>
#include <SDL.h>
#include "platform/switch/keyboard.h"

2
Source/platform/switch/network.cpp

@ -1,4 +1,4 @@
#include <stdlib.h>
#include <cstdlib>
#include <unistd.h>
#include <switch.h>
#include "platform/switch/network.h"

3
Source/platform/vita/keyboard.cpp

@ -1,5 +1,4 @@
#include <string.h>
#include <stdbool.h>
#include <cstring>
#include <SDL.h>
#include <psp2/types.h>

2
Source/player.cpp

@ -4,7 +4,7 @@
* Implementation of player functionality, leveling, actions, creation, loading, etc.
*/
#include <algorithm>
#include <stdint.h>
#include <cstdint>
#include "control.h"
#include "cursor.h"

2
Source/player.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "diablo.h"
#include "engine.h"

2
Source/plrmsg.h

@ -6,7 +6,7 @@
#pragma once
#include "SDL.h"
#include <stdint.h>
#include <cstdint>
#include "engine.h"

2
Source/quests.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "gendung.h"

2
Source/scrollrt.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "engine.h"
#include "miniwin/miniwin.h"

2
Source/sha.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
namespace devilution {

2
Source/sound.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"
#include "utils/soundsample.h"

2
Source/spelldat.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "effects.h"

2
Source/storm/storm.h

@ -4,7 +4,7 @@
#include <cstdint>
#include <limits>
#include <string>
#include <stdint.h>
#include <cstdint>
#include "appfat.h"
#include "multi.h"

2
Source/sync.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"

2
Source/themes.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "gendung.h"
#include "objdat.h"

2
Source/tmsg.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "miniwin/miniwin.h"

2
Source/towners.h

@ -5,7 +5,7 @@
*/
#pragma once
#include <stdint.h>
#include <cstdint>
#include "items.h"
#include "player.h"

6
Source/utils/sdl2_to_1_2_backports.h

@ -2,11 +2,11 @@
#include <SDL.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <cerrno>
#include <cstdio>
#include <sys/stat.h>
#include <sys/types.h>
#include <math.h>
#include <cmath>
#include <cstddef>
#include "utils/console.h"

6
Source/utils/stubs.h

@ -1,8 +1,8 @@
#pragma once
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#define UNIMPLEMENTED() \
do { \

2
test/pack_test.cpp

@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include <stdint.h>
#include <cstdint>
#include "pack.h"

2
test/writehero_test.cpp

@ -2,7 +2,7 @@
#include <fstream>
#include <gtest/gtest.h>
#include <vector>
#include <stdint.h>
#include <cstdint>
#include "loadsave.h"
#include "pack.h"

Loading…
Cancel
Save