summaryrefslogtreecommitdiff
path: root/devel/picprog/files/patch-main.cc
blob: 7df119152601e9e5468171e4764d6ace7834a128 (plain) (blame)
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
--- main.cc.orig	Sat May 31 17:21:37 1997
+++ main.cc	Tue Nov 19 12:31:55 2002
@@ -28,9 +28,10 @@
 
 */
 
-#include <iostream.h>
+#include <iostream>
 #include <sysexits.h>
 #include <unistd.h>
+#define HAVE_DECL_GETOPT 0
 #include <getopt.h>
 
 #include "hexfile.h"
@@ -105,7 +106,7 @@
     }
 
   if (!opt_quiet || opt_warranty || opt_copying || opt_usage)
-    cerr << "Picprog version 1.0, Copyright � 1997 Jaakko Hyv�tti\n"
+    std::cerr << "Picprog version 1.0, Copyright � 1997 Jaakko Hyv�tti\n"
       "Picprog comes with ABSOLUTELY NO WARRANTY; for details\n"
       "type `" << prog.name << " --warranty'.  This is free software,\n"
       "and you are welcome to redistribute it under certain conditions;\n"
@@ -118,7 +119,7 @@
     prog.warranty ();
 
   if (opt_usage) {
-    cerr << "Full documentation is at "
+    std::cerr << "Full documentation is at "
       "<URL:http://www.iki.fi/hyvatti/pic/picprog.html>.\n"
       "The author may be contacted at:\n\n"
 
@@ -133,7 +134,7 @@
     return EX_OK;
 
   if (!opt_input && !opt_output) {
-    cerr << "Please specify either input or output hexfile.\n";
+    std::cerr << "Please specify either input or output hexfile.\n";
     prog.usage (long_opts, short_opts);
   }
 
@@ -150,7 +151,7 @@
       if (EX_OK != (retval = mem.program (opt_port, opt_erase)))
 	return retval;
     } else
-      cout << "No --burn option specified, device not programmed\n";
+      std::cout << "No --burn option specified, device not programmed\n";
 
     if (opt_cc)
       if (EX_OK != (retval = mem.save (opt_cc, hexfile::formats (opt_format),