toolchains: branch mono/atari-adjustments updated. 5169f6c40d33124d2efbe348266647fcd639c150

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Wed Nov 7 22:16:45 GMT 2012


Gitweb links:

...log http://git.netsurf-browser.org/toolchains.git/shortlog/5169f6c40d33124d2efbe348266647fcd639c150
...commit http://git.netsurf-browser.org/toolchains.git/commit/5169f6c40d33124d2efbe348266647fcd639c150
...tree http://git.netsurf-browser.org/toolchains.git/tree/5169f6c40d33124d2efbe348266647fcd639c150

The branch, mono/atari-adjustments has been updated
       via  5169f6c40d33124d2efbe348266647fcd639c150 (commit)
      from  9891e0fd65c4c577e17a0ba4fb287ec9cae03114 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff http://git.netsurf-browser.org/toolchains.git/commitdiff/5169f6c40d33124d2efbe348266647fcd639c150
commit 5169f6c40d33124d2efbe348266647fcd639c150
Author: Ole Loots <ole at monochrom.net>
Commit: Ole Loots <ole at monochrom.net>

    Fix a bunch of warnings by patching windom and Hermes headers.

diff --git a/sdk/Makefile b/sdk/Makefile
index fb5f364..eb0c627 100644
--- a/sdk/Makefile
+++ b/sdk/Makefile
@@ -214,6 +214,10 @@ $(SOURCEDIR)/libcf-$(VERSION_LIBCF).tar.bz2:
 $(BUILDSTEPS)/windom.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEPS)/windom-src.d
 	mkdir -p $(BUILDDIR)/windom
 	cd $(BUILDDIR)/windom && unzip $(SOURCEDIR)/windom-$(VERSION_WINDOM).zip
+	for p in `ls $(RECIPES)/patches/windom/*.p` ; do patch -d $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1 -p0 <$$p ; done
+ifneq ($(realpath $(RECIPES)/patches/windom/$(TARGET)),)
+	for p in `ls $(RECIPES)/patches/windom/$(TARGET)/*.p` ; do patch -d $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1 -p0 <$$p ; done
+endif
 	$(env) make -C $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1/src -f gcc.mak CROSS=yes CROSSPREFIX=${TARGET} M68K_ATARI_MINT_CFLAGS="-I$(GCCSDK_INSTALL_ENV)/include/" 
 	$(env) make -C $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1/src -f gcc.mak CROSS=yes CROSSPREFIX=${TARGET} PREFIX=$(GCCSDK_INSTALL_ENV) install
 	touch $@
@@ -243,6 +247,11 @@ $(SOURCEDIR)/ldg-$(VERSION_LDG).zip:
 
 # hermes bitmap lib
 $(BUILDSTEPS)/hermes.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEPS)/hermes-src.d
+	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES)
+	for p in `ls $(RECIPES)/patches/hermes/*.p` ; do patch -d $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) -p0 <$$p ; done
+ifneq ($(realpath $(RECIPES)/patches/hermes/$(TARGET)),)
+	for p in `ls $(RECIPES)/patches/hermes/$(TARGET)/*.p` ; do patch -d $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) -p0 <$$p ; done
+endif
 	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) && $(env) ./configure --prefix=$(GCCSDK_INSTALL_ENV) --target=$(TARGET) --host=$(TARGET) --disable-shared --disable-x86asm
 	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) && $(env) make CFLAGS="-D__BIG_ENDIAN__" install 
 	touch $@
diff --git a/sdk/recipes/patches/hermes/src.H_Clear.h.p b/sdk/recipes/patches/hermes/src.H_Clear.h.p
new file mode 100644
index 0000000..79f615a
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Clear.h.p
@@ -0,0 +1,11 @@
+--- src/H_Clear.h.orig	2012-11-07 23:02:45.000000000 +0100
++++ src/H_Clear.h	2012-11-07 23:05:47.000000000 +0100
+@@ -22,7 +22,7 @@
+ /*
+    Get a handle for a new clearer instance to work with. Returns 0 if failed.
+ */
+-HERMES_C HermesHandle HERMES_API Hermes_ClearerInstance();
++HERMES_C HermesHandle HERMES_API Hermes_ClearerInstance(void);
+ 
+ 
+ /*
diff --git a/sdk/recipes/patches/hermes/src.H_Format.h.p b/sdk/recipes/patches/hermes/src.H_Format.h.p
new file mode 100644
index 0000000..0a4181f
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Format.h.p
@@ -0,0 +1,11 @@
+--- src/H_Format.h.orig	2012-11-07 23:02:54.000000000 +0100
++++ src/H_Format.h	2012-11-07 23:05:47.000000000 +0100
+@@ -17,7 +17,7 @@
+   int32 colorkey;                  /* colorkey, if has_colorkey is 1 */
+ } HermesFormat;
+ 
+-HERMES_C HermesFormat* HERMES_API Hermes_FormatNewEmpty();
++HERMES_C HermesFormat* HERMES_API Hermes_FormatNewEmpty(void);
+ 
+ /* Create a new format structure, returns 0 if failed.
+ */
diff --git a/sdk/recipes/patches/hermes/src.H_Pal.h.p b/sdk/recipes/patches/hermes/src.H_Pal.h.p
new file mode 100644
index 0000000..0b4e1f0
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Pal.h.p
@@ -0,0 +1,11 @@
+--- src/H_Pal.h.orig	2012-11-07 23:02:21.000000000 +0100
++++ src/H_Pal.h	2012-11-07 23:05:47.000000000 +0100
+@@ -21,7 +21,7 @@
+ /* Get a handle for a palette to work with. This allocates memory for an
+    internal palette. Returns 0 if failed.
+ */
+-HERMES_C HermesHandle HERMES_API Hermes_PaletteInstance();
++HERMES_C HermesHandle HERMES_API Hermes_PaletteInstance(void);
+ 
+ 
+ /*
diff --git a/sdk/recipes/patches/hermes/src.H_Types.h.p b/sdk/recipes/patches/hermes/src.H_Types.h.p
new file mode 100644
index 0000000..d7c9b9c
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Types.h.p
@@ -0,0 +1,11 @@
+--- src/H_Types.h.orig	2012-11-07 23:03:02.000000000 +0100
++++ src/H_Types.h	2012-11-07 23:05:47.000000000 +0100
+@@ -16,7 +16,7 @@
+ 
+ typedef int HermesHandle;
+ 
+-#if (_MSC_VER>=1000) || defined(__VISUALC__)
++#if (defined(_MSC_VER) && (_MSC_VER>=1000)) || defined(__VISUALC__)
+ 
+ typedef unsigned __int32 int32;
+ typedef unsigned __int16 short16;
diff --git a/sdk/recipes/patches/hermes/src.Hermes.h.p b/sdk/recipes/patches/hermes/src.Hermes.h.p
new file mode 100644
index 0000000..19de6ec
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.Hermes.h.p
@@ -0,0 +1,16 @@
+--- src/Hermes.h.orig	2012-11-07 23:02:36.000000000 +0100
++++ src/Hermes.h	2012-11-07 23:05:47.000000000 +0100
+@@ -17,11 +17,11 @@
+ #include "H_Config.h"
+ 
+ /* Initialise Hermes, returns 0 if failed */
+-HERMES_C int  HERMES_API Hermes_Init();
++HERMES_C int  HERMES_API Hermes_Init(void);
+ 
+ 
+ /* Deinitialise Hermes, returns 0 if failed */
+-HERMES_C int HERMES_API Hermes_Done();
++HERMES_C int HERMES_API Hermes_Done(void);
+ 
+ 
+ #endif
diff --git a/sdk/recipes/patches/windom/include.mt_wndm.h.p b/sdk/recipes/patches/windom/include.mt_wndm.h.p
new file mode 100644
index 0000000..3265ed2
--- /dev/null
+++ b/sdk/recipes/patches/windom/include.mt_wndm.h.p
@@ -0,0 +1,39 @@
+--- ./include/mt_wndm.h.orig	2012-11-07 22:35:39.000000000 +0100
++++ ./include/mt_wndm.h	2012-11-07 22:38:14.000000000 +0100
+@@ -1013,7 +1013,7 @@
+ /* Object library */
+ /** @addtogroup Object
+  * @{ */
+-/* int     mt_ObjcAttach      ( APPvar *app, int mode, WINDOW *win, int __index, int type, ...);*/
++int     mt_ObjcAttach      ( APPvar *app, int mode, WINDOW *win, int __index, int type, ...);
+ int     mt_ObjcChange      ( APPvar *app, int mode, void *data, int __index, int state, int redraw);
+ int     mt_ObjcChar        ( APPvar *app, OBJECT *tree, int idx, int put);
+ int     mt_ObjcDrawParent  ( APPvar *app, int mode, void *win, int __index, int parent_depth, int child_depth);
+@@ -1055,27 +1055,22 @@
+  *  \a value_when_selected if the object is selected.
+  */
+ static inline int mt_ObjcAttachVar( APPvar *app, int mode, WINDOW *win, int __index, int *var, int value_when_selected ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, mode, win, __index, BIND_VAR, var, value_when_selected);
+ }
+ 
+ static inline int mt_ObjcAttachBit( APPvar *app, int mode, WINDOW *win, int __index, int *var, int bit ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, mode, win, __index, BIND_BIT, var, bit);
+ }
+ 
+ static inline int mt_ObjcAttachFormFunc( APPvar *app, WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_FORM, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int mt_ObjcAttachTBFunc( APPvar *app, WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_TOOLBAR, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int mt_ObjcAttachMenuFunc( APPvar *app, WINDOW *win, int __index, func_bindmenu fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_MENU, win, __index, BIND_FUNC, fn, data);
+ }
+ 
diff --git a/sdk/recipes/patches/windom/include.windom.h.p b/sdk/recipes/patches/windom/include.windom.h.p
new file mode 100644
index 0000000..e18bf8d
--- /dev/null
+++ b/sdk/recipes/patches/windom/include.windom.h.p
@@ -0,0 +1,30 @@
+--- ./include/windom.h.orig	2012-11-07 22:35:46.000000000 +0100
++++ ./include/windom.h	2012-11-07 22:39:06.000000000 +0100
+@@ -594,27 +594,22 @@
+ }
+ 
+ static inline int ObjcAttachVar( int mode, WINDOW *win, int __index, int *var, int value_when_selected ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, mode, win, __index, BIND_VAR, var, value_when_selected);
+ }
+ 
+ static inline int ObjcAttachBit( int mode, WINDOW *win, int __index, int *var, int bit ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, mode, win, __index, BIND_BIT, var, bit);
+ }
+ 
+ static inline int ObjcAttachFormFunc( WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_FORM, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int ObjcAttachTBFunc( WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_TOOLBAR, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int ObjcAttachMenuFunc( WINDOW *win, int __index, func_bindmenu fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_MENU, win, __index, BIND_FUNC, fn, data);
+ }
+ 


-----------------------------------------------------------------------

Summary of changes:
 sdk/Makefile                                   |    9 +++++
 sdk/recipes/patches/hermes/src.H_Clear.h.p     |   11 +++++++
 sdk/recipes/patches/hermes/src.H_Format.h.p    |   11 +++++++
 sdk/recipes/patches/hermes/src.H_Pal.h.p       |   11 +++++++
 sdk/recipes/patches/hermes/src.H_Types.h.p     |   11 +++++++
 sdk/recipes/patches/hermes/src.Hermes.h.p      |   16 ++++++++++
 sdk/recipes/patches/windom/include.mt_wndm.h.p |   39 ++++++++++++++++++++++++
 sdk/recipes/patches/windom/include.windom.h.p  |   30 ++++++++++++++++++
 8 files changed, 138 insertions(+), 0 deletions(-)
 create mode 100644 sdk/recipes/patches/hermes/src.H_Clear.h.p
 create mode 100644 sdk/recipes/patches/hermes/src.H_Format.h.p
 create mode 100644 sdk/recipes/patches/hermes/src.H_Pal.h.p
 create mode 100644 sdk/recipes/patches/hermes/src.H_Types.h.p
 create mode 100644 sdk/recipes/patches/hermes/src.Hermes.h.p
 create mode 100644 sdk/recipes/patches/windom/include.mt_wndm.h.p
 create mode 100644 sdk/recipes/patches/windom/include.windom.h.p

diff --git a/sdk/Makefile b/sdk/Makefile
index fb5f364..eb0c627 100644
--- a/sdk/Makefile
+++ b/sdk/Makefile
@@ -214,6 +214,10 @@ $(SOURCEDIR)/libcf-$(VERSION_LIBCF).tar.bz2:
 $(BUILDSTEPS)/windom.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEPS)/windom-src.d
 	mkdir -p $(BUILDDIR)/windom
 	cd $(BUILDDIR)/windom && unzip $(SOURCEDIR)/windom-$(VERSION_WINDOM).zip
+	for p in `ls $(RECIPES)/patches/windom/*.p` ; do patch -d $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1 -p0 <$$p ; done
+ifneq ($(realpath $(RECIPES)/patches/windom/$(TARGET)),)
+	for p in `ls $(RECIPES)/patches/windom/$(TARGET)/*.p` ; do patch -d $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1 -p0 <$$p ; done
+endif
 	$(env) make -C $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1/src -f gcc.mak CROSS=yes CROSSPREFIX=${TARGET} M68K_ATARI_MINT_CFLAGS="-I$(GCCSDK_INSTALL_ENV)/include/" 
 	$(env) make -C $(BUILDDIR)/windom/windom-$(VERSION_WINDOM)-1/src -f gcc.mak CROSS=yes CROSSPREFIX=${TARGET} PREFIX=$(GCCSDK_INSTALL_ENV) install
 	touch $@
@@ -243,6 +247,11 @@ $(SOURCEDIR)/ldg-$(VERSION_LDG).zip:
 
 # hermes bitmap lib
 $(BUILDSTEPS)/hermes.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEPS)/hermes-src.d
+	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES)
+	for p in `ls $(RECIPES)/patches/hermes/*.p` ; do patch -d $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) -p0 <$$p ; done
+ifneq ($(realpath $(RECIPES)/patches/hermes/$(TARGET)),)
+	for p in `ls $(RECIPES)/patches/hermes/$(TARGET)/*.p` ; do patch -d $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) -p0 <$$p ; done
+endif
 	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) && $(env) ./configure --prefix=$(GCCSDK_INSTALL_ENV) --target=$(TARGET) --host=$(TARGET) --disable-shared --disable-x86asm
 	cd $(BUILDDIR)/hermes/Hermes-$(VERSION_HERMES) && $(env) make CFLAGS="-D__BIG_ENDIAN__" install 
 	touch $@
diff --git a/sdk/recipes/patches/hermes/src.H_Clear.h.p b/sdk/recipes/patches/hermes/src.H_Clear.h.p
new file mode 100644
index 0000000..79f615a
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Clear.h.p
@@ -0,0 +1,11 @@
+--- src/H_Clear.h.orig	2012-11-07 23:02:45.000000000 +0100
++++ src/H_Clear.h	2012-11-07 23:05:47.000000000 +0100
+@@ -22,7 +22,7 @@
+ /*
+    Get a handle for a new clearer instance to work with. Returns 0 if failed.
+ */
+-HERMES_C HermesHandle HERMES_API Hermes_ClearerInstance();
++HERMES_C HermesHandle HERMES_API Hermes_ClearerInstance(void);
+ 
+ 
+ /*
diff --git a/sdk/recipes/patches/hermes/src.H_Format.h.p b/sdk/recipes/patches/hermes/src.H_Format.h.p
new file mode 100644
index 0000000..0a4181f
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Format.h.p
@@ -0,0 +1,11 @@
+--- src/H_Format.h.orig	2012-11-07 23:02:54.000000000 +0100
++++ src/H_Format.h	2012-11-07 23:05:47.000000000 +0100
+@@ -17,7 +17,7 @@
+   int32 colorkey;                  /* colorkey, if has_colorkey is 1 */
+ } HermesFormat;
+ 
+-HERMES_C HermesFormat* HERMES_API Hermes_FormatNewEmpty();
++HERMES_C HermesFormat* HERMES_API Hermes_FormatNewEmpty(void);
+ 
+ /* Create a new format structure, returns 0 if failed.
+ */
diff --git a/sdk/recipes/patches/hermes/src.H_Pal.h.p b/sdk/recipes/patches/hermes/src.H_Pal.h.p
new file mode 100644
index 0000000..0b4e1f0
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Pal.h.p
@@ -0,0 +1,11 @@
+--- src/H_Pal.h.orig	2012-11-07 23:02:21.000000000 +0100
++++ src/H_Pal.h	2012-11-07 23:05:47.000000000 +0100
+@@ -21,7 +21,7 @@
+ /* Get a handle for a palette to work with. This allocates memory for an
+    internal palette. Returns 0 if failed.
+ */
+-HERMES_C HermesHandle HERMES_API Hermes_PaletteInstance();
++HERMES_C HermesHandle HERMES_API Hermes_PaletteInstance(void);
+ 
+ 
+ /*
diff --git a/sdk/recipes/patches/hermes/src.H_Types.h.p b/sdk/recipes/patches/hermes/src.H_Types.h.p
new file mode 100644
index 0000000..d7c9b9c
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.H_Types.h.p
@@ -0,0 +1,11 @@
+--- src/H_Types.h.orig	2012-11-07 23:03:02.000000000 +0100
++++ src/H_Types.h	2012-11-07 23:05:47.000000000 +0100
+@@ -16,7 +16,7 @@
+ 
+ typedef int HermesHandle;
+ 
+-#if (_MSC_VER>=1000) || defined(__VISUALC__)
++#if (defined(_MSC_VER) && (_MSC_VER>=1000)) || defined(__VISUALC__)
+ 
+ typedef unsigned __int32 int32;
+ typedef unsigned __int16 short16;
diff --git a/sdk/recipes/patches/hermes/src.Hermes.h.p b/sdk/recipes/patches/hermes/src.Hermes.h.p
new file mode 100644
index 0000000..19de6ec
--- /dev/null
+++ b/sdk/recipes/patches/hermes/src.Hermes.h.p
@@ -0,0 +1,16 @@
+--- src/Hermes.h.orig	2012-11-07 23:02:36.000000000 +0100
++++ src/Hermes.h	2012-11-07 23:05:47.000000000 +0100
+@@ -17,11 +17,11 @@
+ #include "H_Config.h"
+ 
+ /* Initialise Hermes, returns 0 if failed */
+-HERMES_C int  HERMES_API Hermes_Init();
++HERMES_C int  HERMES_API Hermes_Init(void);
+ 
+ 
+ /* Deinitialise Hermes, returns 0 if failed */
+-HERMES_C int HERMES_API Hermes_Done();
++HERMES_C int HERMES_API Hermes_Done(void);
+ 
+ 
+ #endif
diff --git a/sdk/recipes/patches/windom/include.mt_wndm.h.p b/sdk/recipes/patches/windom/include.mt_wndm.h.p
new file mode 100644
index 0000000..3265ed2
--- /dev/null
+++ b/sdk/recipes/patches/windom/include.mt_wndm.h.p
@@ -0,0 +1,39 @@
+--- ./include/mt_wndm.h.orig	2012-11-07 22:35:39.000000000 +0100
++++ ./include/mt_wndm.h	2012-11-07 22:38:14.000000000 +0100
+@@ -1013,7 +1013,7 @@
+ /* Object library */
+ /** @addtogroup Object
+  * @{ */
+-/* int     mt_ObjcAttach      ( APPvar *app, int mode, WINDOW *win, int __index, int type, ...);*/
++int     mt_ObjcAttach      ( APPvar *app, int mode, WINDOW *win, int __index, int type, ...);
+ int     mt_ObjcChange      ( APPvar *app, int mode, void *data, int __index, int state, int redraw);
+ int     mt_ObjcChar        ( APPvar *app, OBJECT *tree, int idx, int put);
+ int     mt_ObjcDrawParent  ( APPvar *app, int mode, void *win, int __index, int parent_depth, int child_depth);
+@@ -1055,27 +1055,22 @@
+  *  \a value_when_selected if the object is selected.
+  */
+ static inline int mt_ObjcAttachVar( APPvar *app, int mode, WINDOW *win, int __index, int *var, int value_when_selected ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, mode, win, __index, BIND_VAR, var, value_when_selected);
+ }
+ 
+ static inline int mt_ObjcAttachBit( APPvar *app, int mode, WINDOW *win, int __index, int *var, int bit ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, mode, win, __index, BIND_BIT, var, bit);
+ }
+ 
+ static inline int mt_ObjcAttachFormFunc( APPvar *app, WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_FORM, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int mt_ObjcAttachTBFunc( APPvar *app, WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_TOOLBAR, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int mt_ObjcAttachMenuFunc( APPvar *app, WINDOW *win, int __index, func_bindmenu fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( app, OC_MENU, win, __index, BIND_FUNC, fn, data);
+ }
+ 
diff --git a/sdk/recipes/patches/windom/include.windom.h.p b/sdk/recipes/patches/windom/include.windom.h.p
new file mode 100644
index 0000000..e18bf8d
--- /dev/null
+++ b/sdk/recipes/patches/windom/include.windom.h.p
@@ -0,0 +1,30 @@
+--- ./include/windom.h.orig	2012-11-07 22:35:46.000000000 +0100
++++ ./include/windom.h	2012-11-07 22:39:06.000000000 +0100
+@@ -594,27 +594,22 @@
+ }
+ 
+ static inline int ObjcAttachVar( int mode, WINDOW *win, int __index, int *var, int value_when_selected ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, mode, win, __index, BIND_VAR, var, value_when_selected);
+ }
+ 
+ static inline int ObjcAttachBit( int mode, WINDOW *win, int __index, int *var, int bit ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, mode, win, __index, BIND_BIT, var, bit);
+ }
+ 
+ static inline int ObjcAttachFormFunc( WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_FORM, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int ObjcAttachTBFunc( WINDOW *win, int __index, func_bind fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_TOOLBAR, win, __index, BIND_FUNC, fn, data);
+ }
+ 
+ static inline int ObjcAttachMenuFunc( WINDOW *win, int __index, func_bindmenu fn, void *data ) {
+-	int mt_ObjcAttach ( APPvar *, int, WINDOW *, int, int, ...);
+ 	return mt_ObjcAttach( gl_appvar, OC_MENU, win, __index, BIND_FUNC, fn, data);
+ }
+ 


-- 
Cross-compilation toolchains and environments



More information about the netsurf-commits mailing list