updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / libply / plyheader.patch
blobde39eadf13397b68060c7e9b43c5bc98db6dc849
1 --- tools/plyheader.old.cpp 2011-04-15 23:15:24.574312747 -0700
2 +++ tools/plyheader.cpp 2011-04-15 23:17:02.857440649 -0700
3 @@ -1,3 +1,5 @@
4 +#include <cstdlib>
5 +#include <cstring>
6 #include <fstream>
7 #include <iostream>
9 @@ -38,7 +40,7 @@
13 - if ((short_opt == 'h') || (std::strcmp(long_opt, "help") == 0)) {
14 + if ((short_opt == 'h') || (strcmp(long_opt, "help") == 0)) {
15 std::cout << "Usage: plyheader [OPTION] [[INFILE] OUTFILE]\n";
16 std::cout << "Extract the header from a PLY file.\n";
17 std::cout << "\n";
18 @@ -51,7 +53,7 @@
19 return EXIT_SUCCESS;
22 - else if ((short_opt == 'v') || (std::strcmp(long_opt, "version") == 0)) {
23 + else if ((short_opt == 'v') || (strcmp(long_opt, "version") == 0)) {
24 std::cout << "plyheader (" << PACKAGE_NAME << ") " << PACKAGE_VERSION << "\n";
25 std::cout << "Copyright (C) 2007 " << PACKAGE_AUTHOR << "\n";
26 std::cout << "\n";
27 @@ -90,7 +92,7 @@
28 const char* ifilename = "";
29 if (parc > 0) {
30 ifilename = parv[0];
31 - if (std::strcmp(ifilename, "-") != 0) {
32 + if (strcmp(ifilename, "-") != 0) {
33 ifstream.open(ifilename);
34 if (!ifstream.is_open()) {
35 std::cerr << "plyheader: " << ifilename << ": " << "no such file or directory" << "\n";
36 @@ -103,7 +105,7 @@
37 const char* ofilename = "";
38 if (parc > 1) {
39 ofilename = parv[1];
40 - if (std::strcmp(ofilename, "-") != 0) {
41 + if (strcmp(ofilename, "-") != 0) {
42 ofstream.open(ofilename);
43 if (!ofstream.is_open()) {
44 std::cerr << "plyheader: " << ofilename << ": " << "could not open file" << "\n";