summaryrefslogtreecommitdiff
path: root/utils/MTP/MTP_DLL/MTP_DLL.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-03 22:01:37 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-03 22:01:37 +0000
commitb42a51bf6425539793326cfec4a1f4219b0be8ff (patch)
treec3ab56a15e7baaaac63bf93b19bbf560c1a6aa1b /utils/MTP/MTP_DLL/MTP_DLL.h
parentb1e57c8c8e9108a485079ce445cd338c91cf05ae (diff)
downloadrockbox-b42a51bf6425539793326cfec4a1f4219b0be8ff.zip
rockbox-b42a51bf6425539793326cfec4a1f4219b0be8ff.tar.gz
rockbox-b42a51bf6425539793326cfec4a1f4219b0be8ff.tar.bz2
rockbox-b42a51bf6425539793326cfec4a1f4219b0be8ff.tar.xz
Add sendfirm Windows version, currently in the form of a DLL so it could
be easy integrated into programs (will require VS2005 to compile) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17932 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/MTP_DLL/MTP_DLL.h')
-rw-r--r--utils/MTP/MTP_DLL/MTP_DLL.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/MTP/MTP_DLL/MTP_DLL.h b/utils/MTP/MTP_DLL/MTP_DLL.h
new file mode 100644
index 0000000..a2d7c76
--- /dev/null
+++ b/utils/MTP/MTP_DLL/MTP_DLL.h
@@ -0,0 +1,11 @@
+// The following ifdef block is the standard way of creating macros which make exporting
+// from a DLL simpler. All files within this DLL are compiled with the MTP_DLL_EXPORTS
+// symbol defined on the command line. this symbol should not be defined on any project
+// that uses this DLL. This way any other project whose source files include this file see
+// MTP_DLL_API functions as being imported from a DLL, whereas this DLL sees symbols
+// defined with this macro as being exported.
+#ifdef MTP_DLL_EXPORTS
+#define MTP_DLL_API __declspec(dllexport)
+#else
+#define MTP_DLL_API __declspec(dllimport)
+#endif