From 82f9d834ad772b2f16b6524f679d14d8a7afe881 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <gcontini@users.noreply.github.com> Date: 周二, 10 9月 2019 23:29:10 +0800 Subject: [PATCH] fix issue #37 tests in windows --- 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 713692a..faece34 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 ) @@ -25,7 +27,7 @@ * Method used to convert the LicenseInfo into a human readable * representation. */ -DllExport void print_error(char out_buffer[256], LicenseInfo* licenseInfo); +void print_error(char out_buffer[256], LicenseInfo* licenseInfo); /** * This method calculate the pc identifier. The string has to be shown @@ -43,7 +45,7 @@ * @param license[out] optional, can be NULL. */ -DllExport EVENT_TYPE acquire_license(const char * productName, +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, +EVENT_TYPE confirm_license(char * productName, LicenseLocation licenseLocation); /** * Do nothing for now, useful for network licenses. */ -DllExport enum EVENT_TYPE release_license(char * productName, +EVENT_TYPE release_license(char * productName, LicenseLocation licenseLocation); #ifdef __cplusplus -- Gitblit v1.9.1