Remove FloatToString from NetBSD build since it uses float/double

This commit is contained in:
jmcneill 2018-08-19 14:50:24 +00:00
parent 120267c338
commit 87d32ea89a
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: efilib.h,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $ */
/* $NetBSD: efilib.h,v 1.2 2018/08/19 14:50:24 jmcneill Exp $ */
#ifndef _EFILIB_INCLUDE_
#define _EFILIB_INCLUDE_
@ -597,12 +597,14 @@ ValueToString (
IN INT64 v
);
#ifndef __NetBSD__
VOID
FloatToString (
IN CHAR16 *Buffer,
IN BOOLEAN Comma,
IN double v
);
#endif
VOID
TimeToString (

View File

@ -1,4 +1,4 @@
/* $NetBSD: print.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $ */
/* $NetBSD: print.c,v 1.2 2018/08/19 14:50:24 jmcneill Exp $ */
/*++
@ -1182,6 +1182,7 @@ Returns:
break;
}
#ifndef __NetBSD__
case 'f':
FloatToString (
Item.Scratch,
@ -1190,6 +1191,7 @@ Returns:
);
Item.Item.pw = Item.Scratch;
break;
#endif
case 't':
TimeToString (Item.Scratch, va_arg(ps->args, EFI_TIME *));
@ -1335,6 +1337,7 @@ ValueToString (
*p2 = 0;
}
#ifndef __NetBSD__
VOID
FloatToString (
IN CHAR16 *Buffer,
@ -1387,6 +1390,7 @@ FloatToString (
ValueToString(Buffer + x, FALSE, (INTN)f);
return;
}
#endif
VOID
TimeToString (