diff src/pst2dii.cpp.in @ 118:0f1492b7fe8b

patch from Fridrich Strba for building on mingw and general cleanup of autoconf files add processing for pst files of type 0x0f start adding support for properly building and installing libpst.so and the header files required to use it. remove version.h since the version number is now in config.h more const correctness issues regarding getopt()
author Carl Byington <carl@five-ten-sg.com>
date Sat, 31 Jan 2009 12:12:36 -0800
parents 7133b39975f7
children 6395ced2b8b2
line wrap: on
line diff
--- a/src/pst2dii.cpp.in	Fri Jan 16 15:31:11 2009 -0800
+++ b/src/pst2dii.cpp.in	Sat Jan 31 12:12:36 2009 -0800
@@ -84,8 +84,8 @@
 static void close_png();
 
 
-static int version();
-static int version()
+static void version();
+static void version()
 {
     printf("pst2dii v%s\n", VERSION);
 #if BYTE_ORDER == BIG_ENDIAN
@@ -98,12 +98,11 @@
 #ifdef __GNUC__
     printf("GCC %d.%d : %s %s\n", __GNUC__, __GNUC_MINOR__, __DATE__, __TIME__);
 #endif
-    return 0;
 }
 
 
-static int usage();
-static int usage()
+static void usage();
+static void usage()
 {
     version();
     printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name);
@@ -117,7 +116,6 @@
     printf("\t-f ttf-font-file  \t- Set the font file\n");
     printf("\t-h                \t- Help. This screen\n");
     printf("\t-o dirname        \t- Output directory to write files to.\n");
-    return 0;
 }
 
 
@@ -645,7 +643,7 @@
 }
 
 
-int main(int argc, char **argv)
+int main(int argc, char* const* argv)
 {
     pst_desc_ll *d_ptr;
     char *fname = NULL;