From 6d3dfe5a0443a7d1f12ed580247795bd8695d31b Mon Sep 17 00:00:00 2001 From: naddy Date: Sun, 23 Feb 2003 23:51:07 +0000 Subject: Fix build on -CURRENT (GCC3). --- misc/qmc/files/patch-cqmc | 24 ++++++++++++++++++++++++ misc/qmc/files/patch-main.cc | 23 +++++++++++++++++++++++ misc/qmc/files/patch-msg.cc | 14 ++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 misc/qmc/files/patch-cqmc create mode 100644 misc/qmc/files/patch-main.cc create mode 100644 misc/qmc/files/patch-msg.cc (limited to 'misc') diff --git a/misc/qmc/files/patch-cqmc b/misc/qmc/files/patch-cqmc new file mode 100644 index 000000000000..ae8bef535fdd --- /dev/null +++ b/misc/qmc/files/patch-cqmc @@ -0,0 +1,24 @@ + +$FreeBSD$ + +--- cqmc.orig Mon Feb 24 00:31:45 2003 ++++ cqmc Mon Feb 24 00:32:10 2003 +@@ -18,8 +18,8 @@ + #ifndef cqmc + #define cqmc + +-namespace std +-{ ++//namespace std ++//{ + + //size of input string + #define TERM_GR 128 +@@ -85,6 +85,6 @@ + extern void tableheadoutput(BOOL *var, unsigned char anz, unsigned char gt); + extern void tableoutput(bool value, bool option, unsigned char gt); + extern void tabletailoutput(char *minterm); +-} ++//} + #endif + diff --git a/misc/qmc/files/patch-main.cc b/misc/qmc/files/patch-main.cc new file mode 100644 index 000000000000..274a08ee0df8 --- /dev/null +++ b/misc/qmc/files/patch-main.cc @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- main.cc.orig Mon Feb 24 00:41:46 2003 ++++ main.cc Mon Feb 24 00:43:25 2003 +@@ -166,7 +166,7 @@ + var= new BOOL[anz]; + + //number of possibilities +- help=pow(2,anz); ++ help=pow((unsigned short)2,(unsigned short)anz); + + //create boolean array + erg = new bool[help]; +@@ -242,7 +242,7 @@ + + + //number of possibilty +- help=pow(2,anz); ++ help=pow((unsigned short)2,(unsigned short)anz); + + + //create boolean array diff --git a/misc/qmc/files/patch-msg.cc b/misc/qmc/files/patch-msg.cc new file mode 100644 index 000000000000..402b0e7589e9 --- /dev/null +++ b/misc/qmc/files/patch-msg.cc @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- msg.cc.orig Mon Feb 24 00:21:58 2003 ++++ msg.cc Mon Feb 24 00:23:12 2003 +@@ -42,6 +42,8 @@ + //Headers + #include + ++using namespace std; ++ + /************ + * * + * Errormsg * -- cgit