VirtualBox

Changeset 81009 in vbox for trunk/src


Ignore:
Timestamp:
Sep 25, 2019 4:55:15 PM (5 years ago)
Author:
vboxsync
Message:

EFI/Firmware/VBoxPrintHexDump.c: Use RT_C_IS_PRINT instead of isprint to avoid dragging in system ctype.h header causing a compile error for certain configs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/VBoxPrintHexDump.c

    r76553 r81009  
    3030*   Header Files                                                                                                                 *
    3131*********************************************************************************************************************************/
    32 #include <ctype.h>
    3332#include "VBoxDebugLib.h"
    3433#include "DevEFI.h"
    3534#include "iprt/asm.h"
     35#include "iprt/ctype.h"
    3636
    3737
     
    8181        cchPrinted += VBoxPrintString("  ");
    8282        for (i = 0; i < 16 && i < cb; i++)
    83             cchPrinted += vboxPrintHexDumpChar(isprint(pb[i])
     83            cchPrinted += vboxPrintHexDumpChar(RT_C_IS_PRINT(pb[i])
    8484                                               ? pb[i]
    8585                                               : '.');
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette