From: Jakub Bogusz Date: Mon, 24 Dec 2018 14:17:13 +0000 (+0100) Subject: - missing patches X-Git-Tag: auto/th/xplanet-1.3.1-1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=4cb31352e286bf9742e814cbde4e33d61c28fb44;p=packages%2Fxplanet.git - missing patches --- diff --git a/xplanet-c++.patch b/xplanet-c++.patch new file mode 100644 index 0000000..7cc7b3e --- /dev/null +++ b/xplanet-c++.patch @@ -0,0 +1,48 @@ +--- xplanet-1.3.1/src/Satellite.h.orig 2013-02-16 20:37:47.000000000 +0100 ++++ xplanet-1.3.1/src/Satellite.h 2018-12-24 10:42:29.805341195 +0100 +@@ -1,10 +1,7 @@ + #ifndef SATELLITE_H + #define SATELLITE_H + +-namespace sgp4sdp4 +-{ + #include "libsgp4sdp4/sgp4sdp4.h" +-} + + class Satellite + { +--- xplanet-1.3.1/src/libsgp4sdp4/sgp4sdp4.h.orig 2013-02-16 20:37:45.000000000 +0100 ++++ xplanet-1.3.1/src/libsgp4sdp4/sgp4sdp4.h 2018-12-24 11:33:25.481972969 +0100 +@@ -7,10 +7,6 @@ + #ifndef KELSO_H + #define KELSO_H 1 + +-#ifdef __cplusplus +-extern "C" { +-#endif +- + #include + #include + #include +@@ -23,6 +19,12 @@ + #include + #undef select + ++#ifdef __cplusplus ++namespace sgp4sdp4 { ++ ++extern "C" { ++#endif ++ + + + /** Type definitions **/ +@@ -229,6 +231,8 @@ + + #ifdef __cplusplus + } ++ ++} + #endif + + #endif diff --git a/xplanet-giflib.patch b/xplanet-giflib.patch new file mode 100644 index 0000000..8cd3006 --- /dev/null +++ b/xplanet-giflib.patch @@ -0,0 +1,38 @@ +--- xplanet-1.3.1/src/libimage/gif.c.orig 2013-02-16 20:37:47.000000000 +0100 ++++ xplanet-1.3.1/src/libimage/gif.c 2018-12-24 11:36:17.901970999 +0100 +@@ -179,7 +179,11 @@ + } + } + ++#if (GIFLIB_MAJOR > 5) || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) { ++#else + if (DGifCloseFile(GifFile) == GIF_ERROR) { ++#endif + return(0); + } + +@@ -493,7 +497,11 @@ + static void QuitGifError(GifFileType *GifFile) + { + fprintf(stderr, "Error writing GIF file\n"); ++#if (GIFLIB_MAJOR > 5) || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ if (GifFile != NULL) EGifCloseFile(GifFile, NULL); ++#else + if (GifFile != NULL) EGifCloseFile(GifFile); ++#endif + } + + int +@@ -589,7 +597,11 @@ + Ptr += width; + } + ++#if (GIFLIB_MAJOR > 5) || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1) ++ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR) ++#else + if (EGifCloseFile(GifFile) == GIF_ERROR) ++#endif + + { + QuitGifError(GifFile);