Hi!
Here is a patch to make rain.cxx in progs/demos compile.
g
>From a74b30309ad5a41d354d2d5f1d740d8a2c99bb8b Mon Sep 17 00:00:00 2001
From: Gonzo <[EMAIL PROTECTED]>
Date: Tue, 11 Dec 2007 23:28:20 +0100
Subject: [PATCH] Make rain.cxx compile.
---
progs/demos/Makefile | 11 ++++++++++-
progs/demos/rain.cxx | 1 +
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/progs/demos/Makefile b/progs/demos/Makefile
index 57e56f5..dcddee1 100644
--- a/progs/demos/Makefile
+++ b/progs/demos/Makefile
@@ -45,6 +45,7 @@ PROGS = \
multiarb \
paltex \
pointblast \
+ rain \
ray \
readpix \
reflect \
@@ -73,7 +74,7 @@ PROGS = \
.SUFFIXES:
.SUFFIXES: .c
-
+.SUFFIXES: .cxx
# make executable from .c file:
.c: $(LIB_DEP) readtex.o
@@ -154,6 +155,14 @@ fslight: fslight.o
fslight.o: fslight.c extfuncs.h
$(CC) -c -I$(INCDIR) $(CFLAGS) fslight.c
+rain: particles.o rain.o readtex.o
+ $(CXX) $(LDFLAGS) $^ $(LIBS) -o $@
+
+rain.o: rain.cxx readtex.h
+ $(CXX) -c -I../ $(CXXFLAGS) $<
+
+particles.o: particles.cxx
+ $(CXX) -c -I../ $(CXXFLAGS) $<
viewdds: viewdds.c
diff --git a/progs/demos/rain.cxx b/progs/demos/rain.cxx
index d19f049..5c53d42 100644
--- a/progs/demos/rain.cxx
+++ b/progs/demos/rain.cxx
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <math.h>
#include <time.h>
#include <GL/glut.h>
--
1.5.3.7
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev