[gimp] Syncing TinyScheme with the 1.42 version in the SourceForge repository.
- From: Kevin Cozens <kcozens src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Syncing TinyScheme with the 1.42 version in the SourceForge repository.
- Date: Tue, 31 May 2022 23:31:18 +0000 (UTC)
commit 511ada844e23f5395b3f6abb61ab43cd5987741f
Author: Kevin Cozens <kevin ve3syb ca>
Date: Thu Aug 6 11:55:19 2020 -0400
Syncing TinyScheme with the 1.42 version in the SourceForge repository.
This picks up changes applied in SVN revisions 120 and 124 which
both clean up compiler warnings.
plug-ins/script-fu/tinyscheme/dynload.c | 4 ++++
plug-ins/script-fu/tinyscheme/scheme.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/script-fu/tinyscheme/dynload.c b/plug-ins/script-fu/tinyscheme/dynload.c
index 6440a13cc6..6084a40547 100644
--- a/plug-ins/script-fu/tinyscheme/dynload.c
+++ b/plug-ins/script-fu/tinyscheme/dynload.c
@@ -21,6 +21,10 @@ static void make_init_fn(const char *name, char *init_fn);
#else
typedef void *HMODULE;
typedef void (*FARPROC)();
+#ifndef SUN_DL
+#define SUN_DL
+#endif
+#include <dlfcn.h>
#endif
#ifdef _WIN32
diff --git a/plug-ins/script-fu/tinyscheme/scheme.c b/plug-ins/script-fu/tinyscheme/scheme.c
index eee98da566..845dadf836 100644
--- a/plug-ins/script-fu/tinyscheme/scheme.c
+++ b/plug-ins/script-fu/tinyscheme/scheme.c
@@ -5289,7 +5289,7 @@ int MacTS_main(int argc, char **argv) {
int main(int argc, char **argv) {
#endif
scheme sc;
- FILE *fin;
+ FILE *fin = NULL;
char *file_name=InitFile;
int retcode;
int isfile=1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]