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 110 111 112 113 114 115 116 117 118 119 120
|
From: Sven Eckelmann <sven@narfation.org>
Date: Sat, 12 Sep 2009 15:24:19 +0200
Subject: Make examples compilable without extra example.h
Forwarded: not-needed
---
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(-)
diff --git a/example/filebrowser.c b/example/filebrowser.c
index ea69f73..244e163 100644
--- a/example/filebrowser.c
+++ b/example/filebrowser.c
@@ -14,7 +14,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 ab61af9..83cdfa1 100644
--- a/example/linetest.c
+++ b/example/linetest.c
@@ -7,7 +7,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 int stop(struct s3d_evt *S3DUNUSED(evt))
diff --git a/example/modelloader.c b/example/modelloader.c
index 15a3882..231631e 100644
--- a/example/modelloader.c
+++ b/example/modelloader.c
@@ -8,7 +8,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 ca8d29b..7c4ec56 100644
--- a/example/ptrtest.c
+++ b/example/ptrtest.c
@@ -7,7 +7,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 0d790f7..b3fa767 100644
--- a/example/s3dclock.c
+++ b/example/s3dclock.c
@@ -7,7 +7,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 59e9bb6..12ed7f8 100644
--- a/example/strtest.c
+++ b/example/strtest.c
@@ -7,7 +7,7 @@
#include <s3d.h>
#include <stdio.h> /* NULL*/
#include <unistd.h> /* sleep() */
-#include "example.h" /* S3DUNUSED */
+#define S3DUNUSED(x) x
static int o;
static int stop(struct s3d_evt *S3DUNUSED(evt))
{
diff --git a/example/widgets.c b/example/widgets.c
index 1e0e321..daf7789 100644
--- a/example/widgets.c
+++ b/example/widgets.c
@@ -11,7 +11,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 f37f31a..cd99e9e 100644
--- a/example/wiresphere.c
+++ b/example/wiresphere.c
@@ -8,7 +8,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 */
|