From f6437cfaed1dd0acd1ec63e1c282d0e7edfa4522 Mon Sep 17 00:00:00 2001 From: davidwed <davidwe@posteo.de> Date: 周六, 07 9月 2019 21:54:13 +0800 Subject: [PATCH] Fix a compilier error with msys2-mingw64 ( ld.exe: cannot find -ldl ) (#35) --- src/library/api/datatypes.h | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/library/api/datatypes.h b/src/library/api/datatypes.h index b49a06e..ed30576 100644 --- a/src/library/api/datatypes.h +++ b/src/library/api/datatypes.h @@ -1,17 +1,15 @@ #ifndef DATATYPES_H_ #define DATATYPES_H_ -/* - * This include file is the public api di License++ - * You should include this file if your software don't plan to use - * the part of the library dealing with features. - * Otherwise licensepp-features.h should be included. - */ #ifdef __cplusplus extern "C" { #endif +//definition of size_t +#include <stdlib.h> +#ifndef _MSC_VER #include <stdbool.h> +#endif #ifdef __unix__ #define DllExport @@ -24,8 +22,8 @@ #define PC_IDENTIFIER_SIZE 18 #define PROPRIETARY_DATA_SIZE 16 -#define LICENESE_INT_VERSION 100 -#define LICENSEPP_VERSION "1.0.0" +#define LICENESE_INT_VERSION 110 +#define LICENSEPP_VERSION "1.1.0" typedef enum { LICENSE_OK = 0, //OK @@ -61,7 +59,8 @@ typedef struct { const char *licenseFileLocation; - const char *environmentVariableName;bool openFileNearModule; + const char *environmentVariableName; + bool openFileNearModule; } LicenseLocation; typedef struct { -- Gitblit v1.9.1