Mercurial > projects > dwt-win
comparison dwt/internal/Library.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | ab60f3309436 |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
212:ab60f3309436 | 213:36f5cb12e1a2 |
---|---|
32 static const int MAJOR_VERSION = 3; | 32 static const int MAJOR_VERSION = 3; |
33 | 33 |
34 /** | 34 /** |
35 * DWT Minor version number (must be in the range 0..999) | 35 * DWT Minor version number (must be in the range 0..999) |
36 */ | 36 */ |
37 static const int MINOR_VERSION = 349; | 37 static const int MINOR_VERSION = 442; |
38 | 38 |
39 /** | 39 /** |
40 * DWT revision number (must be >= 0) | 40 * DWT revision number (must be >= 0) |
41 */ | 41 */ |
42 static const int REVISION = 0; | 42 static const int REVISION = 0; |
176 * | 176 * |
177 * @param name the name of the library to load | 177 * @param name the name of the library to load |
178 * @param mapName true if the name should be mapped, false otherwise | 178 * @param mapName true if the name should be mapped, false otherwise |
179 */ | 179 */ |
180 public static void loadLibrary (String name, boolean mapName) { | 180 public 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 } | |
181 | 195 |
182 /* Compute the library name and mapped name */ | 196 /* Compute the library name and mapped name */ |
183 String libName1, libName2, mappedName1, mappedName2; | 197 String libName1, libName2, mappedName1, mappedName2; |
184 if (mapName) { | 198 if (mapName) { |
185 String version = System.getProperty ("swt.version"); //$NON-NLS-1$ | 199 String version = System.getProperty ("swt.version"); //$NON-NLS-1$ |