Skip to content

Commit 2a1b454

Browse files
committed
Game is now compilable under Linux.
1 parent 6fea5f1 commit 2a1b454

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SRC_EXT = c
88
# Path to the source directory, relative to the makefile
99
SRC_PATH = .
1010
# Space-separated pkg-config libraries used by this project
11-
LIBS = sdl12_compat SDL_mixer
11+
LIBS = sdl12_compat SDL_mixer SDL_image
1212
# General compiler flags
1313
COMPILE_FLAGS = -D PC_VERSION -w
1414
# Additional release-specific flags

src/PCGfxEngine.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
#include "SDL.h"
1+
#pragma once
2+
23
#include <stdio.h>
34
#include <stdlib.h>
45

6+
#include "SDL.h"
7+
58
#define MAX_SPRITE 500
69
#define MAX_IMAGE 30
710
#define MAX_TILE 500
@@ -31,8 +34,8 @@
3134
#define GP2X_BUTTON_VOLDOWN (17)
3235
#endif
3336

34-
SDL_Surface* screen;
35-
SDL_Surface* imagesBMP[10];
37+
extern SDL_Surface* screen;
38+
extern SDL_Surface* imagesBMP[10];
3639
extern int mapTiles[MAX_MAP][MAX_MAP_WIDTH][MAX_MAP_HEIGHT];
3740
extern int currentWorldMapX[MAX_MAP];
3841
extern int currentWorldMapY[MAX_MAP];

0 commit comments

Comments
 (0)