]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.h
Add new helper function to get temperature and unit
[ext/subsurface.git] / dive.h
diff --git a/dive.h b/dive.h
index 92d358d0257de2524a7ed5ffe444b3455426e0ed..97654dc5279fbf1ee9d044c9dddba9dae845b789 100644 (file)
--- a/dive.h
+++ b/dive.h
@@ -87,6 +87,7 @@ typedef struct {
 } cylinder_t;
 
 extern double get_depth_units(unsigned int mm, int *frac, const char **units);
+extern double get_temp_units(unsigned int mm, const char **units);
 
 static inline double mm_to_feet(int mm)
 {
@@ -187,6 +188,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;