]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.h
Fix 'init_ui()' so that it can change argc/argv
[ext/subsurface.git] / dive.h
diff --git a/dive.h b/dive.h
index 92d358d0257de2524a7ed5ffe444b3455426e0ed..eda8d6b34d33b4424aabb74df958e7172438b005 100644 (file)
--- a/dive.h
+++ b/dive.h
@@ -187,6 +187,10 @@ struct dive {
  * the input and output may come in some random format. This
  * keeps track of those units.
  */
+/* turns out in Win32 PASCAL is defined as a calling convention */
+#ifdef WIN32
+#undef PASCAL
+#endif
 struct units {
        enum { METERS, FEET } length;
        enum { LITER, CUFT } volume;
@@ -253,7 +257,7 @@ extern void add_event(struct dive *dive, int time, int type, int flags, int valu
 
 /* UI related protopypes */
 
-extern void init_ui(int argc, char **argv);
+extern void init_ui(int *argcp, char ***argvp);
 
 extern void run_ui(void);