Kompilierungsfehler mit PhysicsFS 3.0.1 [PATCH]

Moderator: Moderatoren2

Antworten
Apo
Soldat
Soldat
Beiträge: 16
Registriert: Mi 19. Mär 2014, 12:26

Kompilierungsfehler mit PhysicsFS 3.0.1 [PATCH]

Beitrag von Apo »

Hi,

vor ein paar Wochen wurde PhysicsFS 3.0.1 veröffentlicht und wenn man versucht ASC 2.6.1 dagegen zu bauen gibt es einen Kompilierungsfehler. Der folgende Patch behebt das Problem.

---
source/libs/paragui/src/core/physfsrwops.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/libs/paragui/src/core/physfsrwops.h b/source/libs/paragui/src/core/physfsrwops.h
index 91ff2eb..a259622 100644
--- a/source/libs/paragui/src/core/physfsrwops.h
+++ b/source/libs/paragui/src/core/physfsrwops.h
@@ -39,7 +39,7 @@ extern "C" {
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
+PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);

/**
* Open a platform-independent filename for writing, and make it accessible
@@ -51,7 +51,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
+PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);

/**
* Open a platform-independent filename for appending, and make it accessible
@@ -63,7 +63,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
+PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);

/**
* Make a SDL_RWops from an existing PhysicsFS file handle. You should
@@ -75,7 +75,7 @@ __EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
+PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);

#ifdef __cplusplus
}
Benutzeravatar
Ludius
Soldat
Soldat
Beiträge: 8
Registriert: Mo 15. Jun 2009, 15:23
Einheitenset: MK1

Re: Kompilierungsfehler mit PhysicsFS 3.0.1 [PATCH]

Beitrag von Ludius »

... oder per Kommandozeile:

./configure --enable-extradata CXXFLAGS=-D__EXPORT__=PHYSFS_DECL LIBS="-lm -lpthread"
Eine Signatur ist nur signiert sinnvoll.
Antworten