From 4150ba45f73e3ae0ba3ee6a4006acedf7709c8e7 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周二, 29 7月 2014 07:52:19 +0800 Subject: [PATCH] valgrind --- src/library/api/license++.h | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/library/api/license++.h b/src/library/api/license++.h index 8ec099a..413c2d0 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 ) @@ -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