Show
Ignore:
Timestamp:
05/17/08 11:34:28 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to SWT 3.4M7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/internal/Library.d

    r212 r213  
    3535     * DWT Minor version number (must be in the range 0..999) 
    3636     */ 
    37     static const int MINOR_VERSION = 349
     37    static const int MINOR_VERSION = 442
    3838 
    3939    /** 
     
    179179 */ 
    180180public static void loadLibrary (String name, boolean mapName) { 
     181    String prop = System.getProperty ("sun.arch.data.model"); //$NON-NLS-1$ 
     182    if (prop is null) prop = System.getProperty ("com.ibm.vm.bitmode"); //$NON-NLS-1$ 
     183    if (prop !is null) { 
     184        if ("32".equals (prop)) { //$NON-NLS-1$ 
     185             if (0x1FFFFFFFFL is (int /*long*/)0x1FFFFFFFFL) { 
     186                throw new UnsatisfiedLinkError ("Cannot load 64-bit DWT libraries on 32-bit JVM"); //$NON-NLS-1$ 
     187             } 
     188        } 
     189        if ("64".equals (prop)) { //$NON-NLS-1$ 
     190            if (0x1FFFFFFFFL !is (int /*long*/)0x1FFFFFFFFL) { 
     191                throw new UnsatisfiedLinkError ("Cannot load 32-bit DWT libraries on 64-bit JVM"); //$NON-NLS-1$ 
     192            }        
     193        } 
     194    } 
    181195 
    182196    /* Compute the library name and mapped name */