Skip to content

Commit

Permalink
Update to GCC 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Jun 5, 2024
1 parent b4de8ce commit b715047
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(CMAKE_PLATFORM_NO_VERSIONED_SONAME ON)
set(PICKY_COMPILER OFF)
set(BUILD_CURL_EXE OFF)
set(HTTP_ONLY ON)
set(ENABLE_THREADED_RESOLVER OFF)
set(ENABLE_THREADED_RESOLVER ON)
set(CURL_USE_BEARSSL ON)
set(CURL_USE_OPENSSL OFF)
set(CURL_USE_LIBPSL OFF)
Expand Down
5 changes: 5 additions & 0 deletions src/filesystem.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#if !defined(FILESYSTEM_H)
#define FILESYSTEM_H

char* get_current_directory(void);
char* get_app_filename(void);
char* expand_filename(const char* const filename);
Expand All @@ -11,3 +14,5 @@ int copy_file(const char* const source, const char* const destination);

#define remove_directory(directory) remove_recursive(directory, 1)
#define remove_directory_contents(directory) remove_recursive(directory, 0)

#endif
2 changes: 2 additions & 0 deletions src/m3u8download.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ int m3u8download_retryable(CURL* const curl, const CURLcode code) {
}
case CURLE_SEND_ERROR:
case CURLE_OPERATION_TIMEDOUT:
case CURLE_PARTIAL_FILE:
case CURLE_RECV_ERROR:
return 1;
default:
break;
Expand Down
4 changes: 3 additions & 1 deletion src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ char* get_temporary_directory(void) {
#else
size_t index = 0;

/* We should check first for the TEMP* and TMP* environment variables. */
/*
We should check first for the TEMP* and TMP* environment variables.
*/
for (index = 0; index < sizeof(ENV_TEMPORARY_DIRECTORY) / sizeof(*ENV_TEMPORARY_DIRECTORY); index++) {
const char* const name = ENV_TEMPORARY_DIRECTORY[index];
const char* const directory = getenv(name);
Expand Down
7 changes: 5 additions & 2 deletions src/os.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#ifndef __HAIKU__
#if !defined(OS_H)
#define OS_H

#if !defined(__HAIKU__)
int is_administrator(void);
#endif

Expand All @@ -7,4 +10,4 @@ char* get_temporary_directory(void);
char* get_home_directory(void);
char* find_exe(const char* const name);

#pragma once
#endif

0 comments on commit b715047

Please sign in to comment.