VirtualBox

Changeset 20911 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Jun 24, 2009 11:46:10 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: better fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/alignmentchecks.h

    r20910 r20911  
    3333#define ___internal_alignmentchecks_h
    3434
     35/** @def IPRT_WITH_ALIGNMENT_CHECKS
     36 * Enables or disables the alignment check feature and related hacks. */
     37
     38#ifndef IPRT_WITH_ALIGNMENT_CHECKS
     39# if ( defined(DEBUG) && !defined(IN_GUEST) ) || defined(DOXYGEN_RUNNING)
     40#  define IPRT_WITH_ALIGNMENT_CHECKS 1
     41# endif
     42#endif
     43
    3544/** @def IPRT_ALIGNMENT_CHECKS_DISABLE
    3645 * Disables alignment checks.
     
    4453 */
    4554
    46 #if ( defined(DEBUG) && !defined(IN_GUEST) ) || defined(DOXYGEN_RUNNING)
     55#ifdef IPRT_WITH_ALIGNMENT_CHECKS
    4756# include <iprt/asm.h>
    4857
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