s3d (0.2.1.1-5) installable-examples.patch

Summary

 example/filebrowser.c |    2 +-
 example/linetest.c    |    2 +-
 example/modelloader.c |    2 +-
 example/ptrtest.c     |    2 +-
 example/s3dclock.c    |    2 +-
 example/strtest.c     |    2 +-
 example/widgets.c     |    2 +-
 example/wiresphere.c  |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

    
download this patch

Patch contents

Description: Make examples compilable without extra example.h
Forwarded: not-needed
Author: Sven Eckelmann <sven.eckelmann@gmx.de>

---
diff --git a/example/filebrowser.c b/example/filebrowser.c
index 04ed506140154b3470582452abdf6b7e922ef3fe..a63d1cb375cf0acea546c30f7abec8ea57211ebc 100644
--- a/example/filebrowser.c
+++ b/example/filebrowser.c
@@ -33,7 +33,7 @@
 #include <math.h>  /*  sin(),cos() */
 #include <time.h> /* nanosleep() */
 #include <sys/stat.h>
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static struct timespec t = {
 	0, 100*1000*1000
 }; /* 100 mili seconds */
diff --git a/example/linetest.c b/example/linetest.c
index 824c5fc02753dcbcaeeeed35b560faabd94c78c0..48a63a99ee09f2ca2c7f8463aaad6c9283df26e5 100644
--- a/example/linetest.c
+++ b/example/linetest.c
@@ -26,7 +26,7 @@
 #include <s3d.h>
 #include <stdio.h>  /*  NULL*/
 #include <unistd.h> /* sleep() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static int i;
 static int o;
 static void stop(struct s3d_evt *S3DUNUSED(evt))
diff --git a/example/modelloader.c b/example/modelloader.c
index 05ffdc170705959a4b1c8d9ebe5f127715757f21..4f315bb82422d30469708e6ea652221704df40a1 100644
--- a/example/modelloader.c
+++ b/example/modelloader.c
@@ -27,7 +27,7 @@
 #include <s3d.h>
 #include <stdio.h>  /* NULL */
 #include <time.h> /* nanosleep() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static struct timespec t = {
 	0, 100*1000*1000
 }; /* 100 mili seconds */
diff --git a/example/ptrtest.c b/example/ptrtest.c
index 1cae63e02d019411e6d7afb232844ff838adf242..c8eea0f6ef8c36f0c4148de382b502836a4da6cd 100644
--- a/example/ptrtest.c
+++ b/example/ptrtest.c
@@ -26,7 +26,7 @@
 #include <stdio.h>  /*  NULL*/
 #include <time.h> /* nanosleep() */
 #include <math.h> /* sin(), cos() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static int o;
 static float asp = 1.0;
 static float len = 1.0;
diff --git a/example/s3dclock.c b/example/s3dclock.c
index e01fce8176e5181accff31b62318060e2e5fc6c6..0eeae04a2ec090e40c17b390fe4a89515d43f1f6 100644
--- a/example/s3dclock.c
+++ b/example/s3dclock.c
@@ -26,7 +26,7 @@
 #include <stdio.h>  /*  NULL, sprintf() */
 #include <time.h>  /*  nanosleep(), struct tm, time_t...  */
 #include <string.h>  /*  strlen() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static struct timespec t = {
 	0, 100*1000*1000
 }; /* 100 mili seconds */
diff --git a/example/strtest.c b/example/strtest.c
index d5f2f620635f1088c6966d88acdc6b2fd077d83b..8d23f921648892eb561ee169de354b6cb2dd380f 100644
--- a/example/strtest.c
+++ b/example/strtest.c
@@ -26,7 +26,7 @@
 #include <s3d.h>
 #include <stdio.h>  /*  NULL*/
 #include <unistd.h> /* sleep() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static int o;
 static void stop(struct s3d_evt *S3DUNUSED(evt))
 {
diff --git a/example/widgets.c b/example/widgets.c
index dda89a381163e2f38f2ec9f6d459beef43af1d61..67ed80751eaf1a4f97f122bb622cddb7c80e33fb 100644
--- a/example/widgets.c
+++ b/example/widgets.c
@@ -30,7 +30,7 @@
 #include <time.h> /* nanosleep() */
 #include <stdlib.h> /* free() */
 #include <string.h> /* strlen() */
-#include "example.h"
+#define S3DUNUSED(x) x
 
 static s3dw_surface *surface;
 static s3dw_input *input;
diff --git a/example/wiresphere.c b/example/wiresphere.c
index bba80edbe69b850178f43258f72013361fa6010d..589158a120e760a1bf8013874d41b07df5f07f13 100644
--- a/example/wiresphere.c
+++ b/example/wiresphere.c
@@ -27,7 +27,7 @@
 #include <time.h> /* nanosleep()  */
 #include <math.h> /* M_PI, cos(), sin() */
 #include <stdlib.h> /* malloc(), free() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
 static struct timespec t = {
 	0, 100*1000*1000
 }; /* 100 mili seconds */