try just removing all PLATFORM_WINDOWS conditionals in ipmidi code to see if it will...
[ardour.git] / libs / pbd / pbd / floating.h
index b03158c2776bed5038c5b3ae842590d8c4eed592..86ab4a68f037bf7ed838a7ac8da019ad7c18df6c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Paul Davis 
+    Copyright (C) 2012 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #ifndef __libpbd__floating_h__
 #define __libpbd__floating_h__
 
+#include <stdint.h>
+
 #include <cmath>
 
 #include "pbd/libpbd_visibility.h"
 
 namespace PBD {
 
-union LIBPBD_API Float_t
+union /*LIBPBD_API*/ Float_t
 {
     Float_t (float num = 0.0f) : f(num) {}
 
@@ -40,18 +42,18 @@ union LIBPBD_API Float_t
     bool    negative() const { return (i >> 31) != 0; }
     int32_t raw_mantissa() const { return i & ((1 << 23) - 1); }
     int32_t raw_exponent() const { return (i >> 23) & 0xFF; }
+
     int32_t i;
     float f;
 };
+
 /* Note: ULPS = Units in the Last Place */
 
-LIBPBD_API static inline bool floateq (float a, float b, int max_ulps_diff)
+static inline bool floateq (float a, float b, int max_ulps_diff)
 {
     Float_t ua (a);
     Float_t ub (b);
+
     if (a == b) {
             return true;
     }
@@ -67,7 +69,7 @@ LIBPBD_API static inline bool floateq (float a, float b, int max_ulps_diff)
     if (ulps_diff <= max_ulps_diff) {
         return true;
     }
+
     return false;
 }