Changeset 93 for trunk

Show
Ignore:
Timestamp:
12/12/04 14:32:37 (3 years ago)
Author:
DenisG
Message:

Fix structure packing under Windows. Rules followed under windows seems to be that most structure has a packing size of 4, except those having long values that have a packing size of 8. However, this fix is not nice, hope to find a better way to fix this later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SubversionSharp/dev/src/SvnDirEnt.cs

    r63 r93  
    3737        private svn_dirent_t *mDirEnt; 
    3838 
    39         [StructLayout( LayoutKind.Sequential, Pack=4 )] 
     39#if WIN32 
     40        [StructLayout( LayoutKind.Sequential, Pack=8 )] 
     41#else 
     42        [StructLayout( LayoutKind.Sequential, Pack=4 )] 
     43#endif 
    4044        private struct svn_dirent_t 
    4145        { 
  • trunk/SubversionSharp/dev/src/SvnOptRevision.cs

    r60 r93  
    170170        { 
    171171            [FieldOffset(0)]public int kind; 
    172             [FieldOffset(4)]public int number; 
     172#if WIN32 
     173            [FieldOffset(8)]public int number; 
     174            [FieldOffset(8)]public long date; 
     175#else 
     176            [FieldOffset(4)]public int number; 
    173177            [FieldOffset(4)]public long date; 
     178#endif 
    174179        }  
    175180 
  • trunk/SubversionSharp/dev/src/SvnWcEntry.cs

    r63 r93  
    4444        private svn_wc_entry_t *mEntry; 
    4545 
    46         [StructLayout( LayoutKind.Sequential, Pack=4 )] 
     46#if WIN32 
     47        [StructLayout( LayoutKind.Sequential, Pack=8 )] 
     48#else 
     49        [StructLayout( LayoutKind.Sequential, Pack=4 )] 
     50#endif 
    4751        private struct svn_wc_entry_t 
    4852        {