Skip to content

Commit

Permalink
Unbreak the windows build on MSVC.
Browse files Browse the repository at this point in the history
Fix allegro_windows.h and allegro_direct3d.h not being includable by themselves.
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Jun 8, 2024
1 parent 9ed326a commit 679f5c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/ex_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* command-line parameters, multi-screen, screen-orientation and
* zooming.
*/
#include "allegro5/allegro_direct3d.h"
#include <stdio.h>
#include <stdlib.h>
#include "allegro5/allegro.h"
Expand Down
5 changes: 4 additions & 1 deletion include/allegro5/allegro_direct3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
#if defined ALLEGRO_CFG_D3DX9 && defined __cplusplus
#include <d3dx9.h>
#endif
#include "allegro5/platform/alplatf.h"

#include "allegro5/base.h"
#include "allegro5/display.h"
#include "allegro5/bitmap.h"

/* Display creation flag. */
#define ALLEGRO_DIRECT3D ALLEGRO_DIRECT3D_INTERNAL
Expand Down
3 changes: 2 additions & 1 deletion include/allegro5/allegro_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

#include <windows.h>

#include "allegro5/internal/alconfig.h"
#include "allegro5/base.h"
#include "allegro5/display.h"

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 679f5c5

Please sign in to comment.