1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
Description: Make examples compilable without extra example.h
Forwarded: not-needed
Author: Sven Eckelmann <sven@narfation.org>
---
diff --git a/example/filebrowser.c b/example/filebrowser.c
index ac801f0e0a66a1ff2f24df67c696718000d2a353..cf5922b36d19b39d99756e5760ec59cc2876ac85 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 90c483a6fe46c19cc3082c04285ee05ac327205a..9726f132608c981d8de7d03fc1c473631e4644ca 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 6568a4bfb72552ef86771834a19466ea08ab59ee..1cd55d993a35a3cc14e4983d5c112094bea8b59d 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 d3ab0679fbc8239d674674a070fca22df43f215b..49716f4d0d2501918253680f259df71652bf8361 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 e99b7f78ed56e520abc6a8cc0e65ea41c0cf00ae..bff617a4cb873d791eeceacdca324c706ab728db 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 f1e590363e862685d5edfcad59031bdb00de4177..9ccceb29398ad44aed9189d99dd91b585ecb503c 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 ec7ebf0ac7a5eaee008e8b35941696b149ba6218..4be98ea110d58603c357d583baef940497976f2b 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 4dae6fb7fd2a3161ccf490ac90f9255a1933471b..e27c5a9eeaf8727e6e48aca30ed68eb23d74bc95 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 */
|