summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/hermes
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-11-07 23:23:21 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-11-07 23:10:04 +0000
commitd5454c6f9ca42956a8e0a20fa008b34fe4ed4506 (patch)
tree2f303471183ee005b601156ed3fe0c24f008903f /sdk/recipes/patches/hermes
parentf0d22aac3de70afdf05a97758ab4c5cfde2b7064 (diff)
downloadtoolchains-d5454c6f9ca42956a8e0a20fa008b34fe4ed4506.tar.gz
toolchains-d5454c6f9ca42956a8e0a20fa008b34fe4ed4506.tar.bz2
Fix a bunch of warnings by patching windom and Hermes headers.
Diffstat (limited to 'sdk/recipes/patches/hermes')
-rw-r--r--sdk/recipes/patches/hermes/src.H_Clear.h.p11
-rw-r--r--sdk/recipes/patches/hermes/src.H_Format.h.p11
-rw-r--r--sdk/recipes/patches/hermes/src.H_Pal.h.p11
-rw-r--r--sdk/recipes/patches/hermes/src.H_Types.h.p11
-rw-r--r--sdk/recipes/patches/hermes/src.Hermes.h.p16
5 files changed, 60 insertions, 0 deletions
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