diff --git a/src/hidapi.inc b/src/hidapi.inc
index 9a3e781..96f8eb9 100644
--- a/src/hidapi.inc
+++ b/src/hidapi.inc
@@ -93,8 +93,10 @@ uses
0.11.2 0112
}
{$ifndef HIDAPI_VERSION}
- {$ERROR For static linking you need to define the version of the HidApi library.
- i.e. for 0.9.0 use HIDAPI_VERSION = 0090 or for 0.10.0 HIDAPI_VERSION = 0100 }
+ {$warning For static loading you need to define the version of the HidApi library. }
+ {$warning i.e. for 0.9.0 use HIDAPI_VERSION = 0090 or for 0.10.0 HIDAPI_VERSION = 0100 etc. }
+ {$warning else static loading defaults to 0.9.0 hidapi version library .}
+ {$define HIDAPI_VERSION := 0090}
{$endif}
{$endif}
diff --git a/src/hidapi.pas b/src/hidapi.pas
index 8150324..44b2947 100644
--- a/src/hidapi.pas
+++ b/src/hidapi.pas
@@ -24,6 +24,7 @@
}
unit hidapi;
+{$define HIDAPI_LOAD_DYNAMICALLY}
{$i hidapi.inc}
end.
diff --git a/src/hidapi_pkg.lpk b/src/hidapi_pkg.lpk
index b2463a9..e8983f5 100644
--- a/src/hidapi_pkg.lpk
+++ b/src/hidapi_pkg.lpk
@@ -1,37 +1,37 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/hidapi_pkg.pas b/src/hidapi_pkg.pas
index bf7092d..71b7ac8 100644
--- a/src/hidapi_pkg.pas
+++ b/src/hidapi_pkg.pas
@@ -1,15 +1,15 @@
-{ This file was automatically created by Lazarus. Do not edit!
- This source is only used to compile and install the package.
- }
-
-unit hidapi_pkg;
-
-{$warn 5023 off : no warning about unused units}
-interface
-
-uses
- hidapi_dyn;
-
-implementation
-
-end.
+{ This file was automatically created by Lazarus. Do not edit!
+ This source is only used to compile and install the package.
+ }
+
+unit hidapi_pkg;
+
+{$warn 5023 off : no warning about unused units}
+interface
+
+uses
+ hidapi;
+
+implementation
+
+end.
diff --git a/src/hidapi_dyn.pas b/src/hidapi_static.pas
similarity index 95%
rename from src/hidapi_dyn.pas
rename to src/hidapi_static.pas
index c2bdbe1..8150324 100644
--- a/src/hidapi_dyn.pas
+++ b/src/hidapi_static.pas
@@ -22,9 +22,8 @@
You should have received a copy of the GNU Library General Public License along with this library; if not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
}
-unit hidapi_dyn;
+unit hidapi;
-{$define HIDAPI_LOAD_DYNAMICALLY}
{$i hidapi.inc}
end.