diff C++/DynLib.h @ 196:274b4f216e65

DynLib: Windows support complete
author David Demelier <markand@malikania.fr>
date Thu, 28 Nov 2013 20:03:07 +0100
parents 42b77e0161d0
children 0b029b53ff55
line wrap: on
line diff
--- a/C++/DynLib.h	Wed Nov 27 21:20:26 2013 +0100
+++ b/C++/DynLib.h	Thu Nov 28 20:03:07 2013 +0100
@@ -21,6 +21,10 @@
 
 #include <string>
 
+#if defined(_MSC_VER)
+#  include <Windows.h>
+#endif
+
 /**
  * @class DynLib
  * @brief Load a dynamic module
@@ -31,6 +35,8 @@
 class DynLib {
 public:
 #if defined(_MSC_VER)
+	using Handle	= HMODULE;
+	using Sym	= FARPROC;
 #else
 	using Handle	= void *;
 	using Sym	= void *;