VirtualBox

Changeset 81717 in vbox


Ignore:
Timestamp:
Nov 6, 2019 4:19:09 PM (5 years ago)
Author:
vboxsync
Message:

EFI/Firmware/fsw_hfs.h: Use SwapBytes64() instead of RT_BE2H_U64() (which uses >>) to avoid unresolved symbol errors when compiling with optimizations turned of for x86

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_hfs.h

    r76553 r81717  
    4040#include "iprt/asm.h"           /* endian conversion */
    4141
     42#include <Library/BaseLib.h>
    4243
    4344//! Block size for HFS volumes.
     
    150151be64_to_cpu(fsw_u64 x)
    151152{
    152     return RT_BE2H_U64(x);
     153#ifdef RT_LITTLE_ENDIAN
     154    return SwapBytes64(x);
     155#else
     156    return x;
     157#endif
    153158}
    154159
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