summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-22 18:22:48 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-25 14:52:24 (GMT)
commit36e2a07a5b5e0eb07bd9fcea48004dd8b5890322 (patch)
treecfdb0166c3d18c41a9dacc82326711fdea564ab6 /font
parent04b3eb11fd32daaf094df676d2037ed613c172a0 (diff)
downloadpowder-36e2a07a5b5e0eb07bd9fcea48004dd8b5890322.zip
powder-36e2a07a5b5e0eb07bd9fcea48004dd8b5890322.tar.gz
Visual Studio fixes
Diffstat (limited to 'font')
-rw-r--r--font/Makefile2
-rw-r--r--font/editor.c4
-rw-r--r--font/packer.c4
3 files changed, 9 insertions, 1 deletions
diff --git a/font/Makefile b/font/Makefile
index e3b0c8c..7bb04e0 100644
--- a/font/Makefile
+++ b/font/Makefile
@@ -1,5 +1,5 @@
editor: editor.c
- gcc -oeditor -DSCALE=2 editor.c -lSDL -lm -O3 -ffast-math -march=k8 -Wall -std=c99
+ gcc -oeditor -DSCALE=2 -DFONTEDITOR editor.c -lSDL -lm -O3 -ffast-math -march=k8 -Wall -std=c99
clean:
rm -f editor packer
diff --git a/font/editor.c b/font/editor.c
index 71c5aa0..7714782 100644
--- a/font/editor.c
+++ b/font/editor.c
@@ -1,3 +1,5 @@
+#ifdef FONTEDITOR
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -282,3 +284,5 @@ int main(int argc, char *argv[])
return 0;
}
+
+#endif
diff --git a/font/packer.c b/font/packer.c
index db57b1a..b30e6d3 100644
--- a/font/packer.c
+++ b/font/packer.c
@@ -1,3 +1,5 @@
+#ifdef FONTEDITOR
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -98,3 +100,5 @@ int main(int argc, char *argv[])
return 0;
}
+
+#endif