From 0c0753602286bbf2ce89a2ed8c7acd7db2dfbc7c Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周一, 11 8月 2014 06:39:59 +0800
Subject: [PATCH] add boost

---
 src/library/api/license++.h |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/library/api/license++.h b/src/library/api/license++.h
index 8ec099a..13960b0 100644
--- a/src/library/api/license++.h
+++ b/src/library/api/license++.h
@@ -13,7 +13,9 @@
 
 #ifdef __unix__
 #define DllExport
-#define MAX_PATH 1024
+#ifndef MAX_PATH
+	#define MAX_PATH 1024
+#endif
 #else
 #include <windows.h>
 #define DllExport  __declspec( dllexport )
@@ -31,7 +33,7 @@
  * This method calculate the pc identifier. The string has to be shown
  * to the user in order to calculate the license.
  */
-void identify_pc(IDENTIFICATION_STRATEGY pc_id_method,
+DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method,
 		char chbuffer[PC_IDENTIFIER_SIZE + 1]);
 /*
  * The optional parameter License contains the information the program that uses the library
@@ -43,7 +45,7 @@
  * @param license[out] optional, can be NULL.
  */
 
-DllExport EVENT_TYPE acquire_license(char * productName,
+DllExport EVENT_TYPE acquire_license(const char * productName,
 		LicenseLocation licenseLocation, LicenseInfo* license);
 
 /**
@@ -51,12 +53,12 @@
  * Should be called from time to time to confirm we're still using the
  * slicense.
  */
-DllExport enum EVENT_TYPE confirm_license(char * productName,
+DllExport EVENT_TYPE confirm_license(char * productName,
 		LicenseLocation licenseLocation);
 /**
  * Do nothing for now, useful for network licenses.
  */
-DllExport enum EVENT_TYPE release_license(char * productName,
+DllExport EVENT_TYPE release_license(char * productName,
 		LicenseLocation licenseLocation);
 
 #ifdef __cplusplus

--
Gitblit v1.9.1