-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3aa958f
commit 3b1c9a4
Showing
4 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
# | ||
# Cross-platform library which helps to develop web servers or frameworks. | ||
# | ||
# Copyright (C) 2016-2021 Silvio Clecio <[email protected]> | ||
# Copyright (C) 2016-2023 Silvio Clecio <[email protected]> | ||
# | ||
# Sagui library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -43,16 +43,11 @@ endif() | |
set(__SG_MHD_INCLUDED ON) | ||
|
||
set(MHD_NAME "libmicrohttpd") | ||
set(MHD_VER "0.9.74") | ||
set(MHD_VER "0.9.76") | ||
set(MHD_FULL_NAME "${MHD_NAME}-${MHD_VER}") | ||
set(MHD_URL | ||
"https://github.com/Karlson2k/libmicrohttpd/releases/download/v${MHD_VER}/${MHD_FULL_NAME}.tar.gz" | ||
) | ||
set(MHD_URL_MIRROR | ||
"https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz" | ||
) | ||
set(MHD_SHA256 | ||
"42035d0261373324bfb434018f4ab892514b10253d1af232e41b4cc2c11e650b") | ||
set(MHD_URL "https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz") | ||
set(MHD_URL_MIRROR "https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz") | ||
set(MHD_SHA256 "f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c") | ||
set(_libdir ${CMAKE_BINARY_DIR}/${MHD_FULL_NAME}/lib) | ||
if(${CMAKE_VERSION} VERSION_LESS "3.7") | ||
unset(MHD_URL_MIRROR) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
# | ||
# Cross-platform library which helps to develop web servers or frameworks. | ||
# | ||
# Copyright (C) 2016-2021 Silvio Clecio <[email protected]> | ||
# Copyright (C) 2016-2023 Silvio Clecio <[email protected]> | ||
# | ||
# Sagui library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
|
@@ -46,16 +46,15 @@ set(__SG_PCRE2_INCLUDED ON) | |
option(PCRE2_JIT_SUPPORT "Enable JIT support" ON) | ||
|
||
set(PCRE2_NAME "pcre2") | ||
set(PCRE2_VER "10.39") | ||
set(PCRE2_VER "10.42") | ||
set(PCRE2_FULL_NAME "${PCRE2_NAME}-${PCRE2_VER}") | ||
set(PCRE2_URL | ||
"https://github.com/PhilipHazel/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" | ||
"https://github.com/PCRE2Project/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" | ||
) | ||
set(PCRE2_URL_MIRROR | ||
"https://github.com/PhilipHazel/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" | ||
"https://github.com/PCRE2Project/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" | ||
) | ||
set(PCRE2_SHA256 | ||
"0781bd2536ef5279b1943471fdcdbd9961a2845e1d2c9ad849b9bd98ba1a9bd4") | ||
set(PCRE2_SHA256 "c33b418e3b936ee3153de2c61cc638e7e4fe3156022a5c77d0711bcbb9d64f1f") | ||
if(${CMAKE_VERSION} VERSION_LESS "3.7") | ||
unset(PCRE2_URL_MIRROR) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* Cross-platform library which helps to develop web servers or frameworks. | ||
* | ||
* Copyright (C) 2016-2021 Silvio Clecio <[email protected]> | ||
* Copyright (C) 2016-2023 Silvio Clecio <[email protected]> | ||
* | ||
* Sagui library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -74,7 +74,7 @@ extern "C" { | |
|
||
#define SG_VERSION_MAJOR 3 | ||
#define SG_VERSION_MINOR 4 | ||
#define SG_VERSION_PATCH 0 | ||
#define SG_VERSION_PATCH 1 | ||
#define SG_VERSION_HEX \ | ||
((SG_VERSION_MAJOR << 16) | (SG_VERSION_MINOR << 8) | (SG_VERSION_PATCH)) | ||
|
||
|
@@ -1755,7 +1755,7 @@ struct sg_entrypoints; | |
* Callback signature used by #sg_entrypoints_iter() to iterate entry-point | ||
* items. | ||
* \param[out] cls User-defined closure. | ||
* \param[out] pair Current iterated entry-point. | ||
* \param[out] entrypoint Current iterated entry-point. | ||
* \retval 0 Success. | ||
* \retval E<ERROR> User-defined error to stop the items iteration. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* Cross-platform library which helps to develop web servers or frameworks. | ||
* | ||
* Copyright (C) 2016-2021 Silvio Clecio <[email protected]> | ||
* Copyright (C) 2016-2023 Silvio Clecio <[email protected]> | ||
* | ||
* Sagui library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -367,7 +367,7 @@ char *sg_extract_entrypoint(const char *path) { | |
|
||
/* File/directory. */ | ||
|
||
char *sg_tmpdir() { | ||
char *sg_tmpdir(void) { | ||
#ifdef _WIN32 | ||
wchar_t path[MAX_PATH + 1]; /* max 261 */ | ||
size_t len = GetTempPathW(MAX_PATH + 1, path); | ||
|