Fix build with newer GCC.

This commit is contained in:
joerg 2011-11-25 22:19:56 +00:00
parent 7740bfa956
commit 200bca78ca
3 changed files with 43 additions and 1 deletions

View file

@ -1,8 +1,10 @@
$NetBSD: distinfo,v 1.7 2008/04/24 13:57:08 tron Exp $ $NetBSD: distinfo,v 1.8 2011/11/25 22:19:56 joerg Exp $
SHA1 (glclock-6.0b6.0.tar.gz) = e276a516d543c9a6c04f06cfa046f89a476a8685 SHA1 (glclock-6.0b6.0.tar.gz) = e276a516d543c9a6c04f06cfa046f89a476a8685
RMD160 (glclock-6.0b6.0.tar.gz) = f0bd207a47a01e3dc3d3da5b107b168a3210d2a3 RMD160 (glclock-6.0b6.0.tar.gz) = f0bd207a47a01e3dc3d3da5b107b168a3210d2a3
Size (glclock-6.0b6.0.tar.gz) = 811803 bytes Size (glclock-6.0b6.0.tar.gz) = 811803 bytes
SHA1 (patch-GLObject.H) = 62040251be8e6dba3d744640fdcb614eed30a306
SHA1 (patch-MString.H) = 3d31d19c33327d6b6775d9bb7db165a8949e4fc2
SHA1 (patch-aa) = d2526e6ce7679ce67835b6b916b4524b4249d7e5 SHA1 (patch-aa) = d2526e6ce7679ce67835b6b916b4524b4249d7e5
SHA1 (patch-ab) = 8d4f12c9948d703e4fbff68282388efc7a352f59 SHA1 (patch-ab) = 8d4f12c9948d703e4fbff68282388efc7a352f59
SHA1 (patch-ac) = d06a44d725820c2988888665c4d5dd75161525b8 SHA1 (patch-ac) = d06a44d725820c2988888665c4d5dd75161525b8

View file

@ -0,0 +1,19 @@
$NetBSD: patch-GLObject.H,v 1.1 2011/11/25 22:19:56 joerg Exp $
--- GLObject.H.orig 2011-11-25 18:07:37.000000000 +0000
+++ GLObject.H
@@ -11,11 +11,13 @@
#pragma warning(disable : 4051) // ALPHA
#endif
-#include <iostream.h>
+#include <iostream>
#include "GLextensions.H"
#include "PnmIO.H"
+using namespace std;
+
// for debug
//#define glNormal3f(x,y,z) glTexCoord2f(x, y)

View file

@ -0,0 +1,21 @@
$NetBSD: patch-MString.H,v 1.1 2011/11/25 22:19:56 joerg Exp $
--- MString.H.orig 2011-11-25 18:07:40.000000000 +0000
+++ MString.H
@@ -66,7 +66,7 @@
#ifndef ___STRING_H___
#define ___STRING_H___
-#include <iostream.h>
+#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -75,6 +75,7 @@
#include "Define.H"
+using namespace std;
//#define STRING_DEBUG