mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
DragonMemory: actually fix path issues.
Previous patch was not complete.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
From 65ce3704fa106e0961af89bd7217bea75edf3b5b Mon Sep 17 00:00:00 2001
|
||||
From cc7023a6b32c9741929529fe1bf779a3201d7452 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Thu, 25 Sep 2014 10:49:04 +0200
|
||||
Subject: Fix path issues.
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 1114af0..7d1e98a 100644
|
||||
index 1114af0..b1f9034 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
CC = gcc -Wall -ansi
|
||||
-CC = gcc -Wall -ansi
|
||||
+CC = gcc -Wall -Wno-multichar
|
||||
|
||||
all:
|
||||
- $(CC) dragonmemory.cpp -o dragonmemory -lGL -lGLU -lSDL_image -lSDL_mixer `sdl-config --cflags --libs`
|
||||
@@ -18,10 +19,19 @@ index 1114af0..7d1e98a 100644
|
||||
clean:
|
||||
@echo Cleaning up...
|
||||
diff --git a/dragonmemory.cpp b/dragonmemory.cpp
|
||||
index 145dd8b..a6b6097 100644
|
||||
index 145dd8b..2fc7ac9 100644
|
||||
--- a/dragonmemory.cpp
|
||||
+++ b/dragonmemory.cpp
|
||||
@@ -40,6 +40,7 @@
|
||||
@@ -8,6 +8,8 @@
|
||||
#include<stdlib.h>
|
||||
#include<math.h>
|
||||
#include<time.h>
|
||||
+#include <libgen.h>
|
||||
+#include <unistd.h>
|
||||
#ifdef ANDROID
|
||||
#include<SDL.h>
|
||||
#include<SDL_image.h>
|
||||
@@ -40,6 +42,7 @@
|
||||
|
||||
int main (int argc, char * argv[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user