01: /*******************************************************************************
02: * Copyright (c) 2000, 2003 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.opengl;
11:
12: import org.eclipse.swt.*;
13:
14: public class Library {
15:
16: public static void loadLibrary(String name) {
17: String platform = SWT.getPlatform();
18: try {
19: String newName = name + '-' + platform;
20: System.loadLibrary(newName);
21: return;
22: } catch (UnsatisfiedLinkError e1) {
23: throw e1;
24: }
25: }
26: }
|