Changeset 6902


Ignore:
Timestamp:
Oct 14, 2008, 5:30:07 PM (14 years ago)
Author:
charles
Message:

mmap portability changes by Spry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r6901 r6902  
    638638 */
    639639
     640#if defined(_MSC_VER)
     641__declspec( align( 4 ) ) static LONG volatile g_sl;
     642#else
    640643static LONG volatile g_sl __attribute__ ( ( aligned ( 4 ) ) );
     644#endif
    641645
    642646/* Wait for spin lock */
     
    652656/* Release spin lock */
    653657static int
    654 slrelease( LONG *sl )
     658slrelease( LONG volatile *sl )
    655659{
    656660    InterlockedExchange ( sl, 0 );
Note: See TracChangeset for help on using the changeset viewer.