Skip to content

Commit

Permalink
Force "buildSWT_VERSION" to appear in .di files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Apr 14, 2013
1 parent 5daae72 commit c2d391d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/eclipse/swt/internal/Library.d
Expand Up @@ -16,7 +16,7 @@ import java.lang.all;

// do it here, so it can be evaluated at compile time
// this saves a static ctor.
private int buildSWT_VERSION (int major, int minor) {
private int buildSWT_VERSION () (int major, int minor) {
return major * 1000 + minor;
}

Expand Down Expand Up @@ -188,7 +188,7 @@ public static void loadLibrary (String name, boolean mapName) {
if ("64".equals (prop)) { //$NON-NLS-1$
if (0x1FFFFFFFFL !is (int /*long*/)0x1FFFFFFFFL) {
throw new UnsatisfiedLinkError ("Cannot load 32-bit SWT libraries on 64-bit JVM"); //$NON-NLS-1$
}
}
}
}
Expand Down

0 comments on commit c2d391d

Please sign in to comment.