revert incorrect include path changes and removal of export macros for two libardour...
[ardour.git] / libs / pbd / pbd / fastlog.h
index 4269705a44537a76a06a655414ffeead48362b14..21cbfbdce22579524cf45670eba168f69fa0b2a6 100644 (file)
@@ -1,11 +1,17 @@
-/* Copyright unknown. Code by Laurent de Soras <laurent@ohmforce.com>.
- */
+/*
+Copyright © 2013 Laurent de Soras <laurent.de.soras@free.fr>
 
+This work is free. You can redistribute it and/or modify it under the
+terms of the Do What The Fuck You Want To Public License, Version 2,
+as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
+*/
 #ifndef __pbd_fastlog_h__
 #define __pbd_fastlog_h__
 
 #include <math.h> /* for HUGE_VAL */
 
+#include "pbd/libpbd_visibility.h"
+
 static inline float fast_log2 (float val)
 {
        /* don't use reinterpret_cast<> because that prevents this
@@ -35,6 +41,6 @@ static inline float fast_log10 (const float val)
        return fast_log2(val) / 3.312500f;
 }
 
-static inline float minus_infinity() { return -HUGE_VAL; }
+static inline float minus_infinity(void) { return -HUGE_VAL; }
 
 #endif /* __pbd_fastlog_h__ */