summaryrefslogtreecommitdiff
path: root/utils/MTP/MTP_DLL/MTP_DLL.h
diff options
context:
space:
mode:
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 0000000000..a2d7c76fdb
--- /dev/null
+++ b/utils/MTP/MTP_DLL/MTP_DLL.h
@@ -0,0 +1,11 @@
1// The following ifdef block is the standard way of creating macros which make exporting
2// from a DLL simpler. All files within this DLL are compiled with the MTP_DLL_EXPORTS
3// symbol defined on the command line. this symbol should not be defined on any project
4// that uses this DLL. This way any other project whose source files include this file see
5// MTP_DLL_API functions as being imported from a DLL, whereas this DLL sees symbols
6// defined with this macro as being exported.
7#ifdef MTP_DLL_EXPORTS
8#define MTP_DLL_API __declspec(dllexport)
9#else
10#define MTP_DLL_API __declspec(dllimport)
11#endif