VirtualBox

Changeset 32464 in vbox


Ignore:
Timestamp:
Sep 14, 2010 8:48:32 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65836
Message:

Runtime: only include critsect.h in stream.cpp if it is needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r30111 r32464  
    2727
    2828
     29#if defined(RT_OS_LINUX) /* PORTME: check for the _unlocked functions in stdio.h */
     30#define HAVE_FWRITE_UNLOCKED
     31#endif
     32
    2933/*******************************************************************************
    3034*   Header Files                                                               *
     
    3438
    3539#include <iprt/asm.h>
    36 #include <iprt/critsect.h>
     40#ifndef HAVE_FWRITE_UNLOCKED
     41# include <iprt/critsect.h>
     42#endif
    3743#include <iprt/string.h>
    3844#include <iprt/assert.h>
     
    4753#include <stdio.h>
    4854#include <errno.h>
    49 
    50 #if defined(RT_OS_LINUX) /* PORTME: check for the _unlocked functions in stdio.h */
    51 #define HAVE_FWRITE_UNLOCKED
    52 #endif
    5355
    5456
Note: See TracChangeset for help on using the changeset viewer.

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