changeset 341:1cd24530c0ae

fluid-mnf/misc.c: passes compilation
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 13 Mar 2020 02:51:54 +0000
parents 435e041897f2
children 6ff231195905
files fluid-mnf/misc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fluid-mnf/misc.c	Fri Mar 13 02:47:52 2020 +0000
+++ b/fluid-mnf/misc.c	Fri Mar 13 02:51:54 2020 +0000
@@ -15,6 +15,7 @@
 #include "trace.h"
 
 #include <stdio.h>
+#include <string.h>
 #include <time.h>
 
 #if defined(MSC) || defined(BCC)
@@ -84,7 +85,7 @@
  ******************************************************************************/
 
 // Return the base 2 logarithm of <number>. Return -1 if <number> is zero.
-unsigned int log2(unsigned int number)
+unsigned int my_log2(unsigned int number)
 {
     int result = -1;
 
@@ -118,7 +119,7 @@
         // generate a progress indicator that is in the range [16..32[ chars
         // in length.
         progress_mul = n / 32;
-        progress_mul = 1 << (log2(progress_mul) + 1);
+        progress_mul = 1 << (my_log2(progress_mul) + 1);
         n = (n + progress_mul - 1) / progress_mul;
 
         progress_string[1 + n]     = ')';