mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
use -std=c11 not -std=gnu11
This commit is contained in:
parent
1ebfb2c9e3
commit
d09029f7f4
@ -3,6 +3,7 @@ project(notcurses VERSION 0.4.0
|
||||
DESCRIPTION "UI for modern terminal emulators"
|
||||
HOMEPAGE_URL "https://nick-black.com/dankwiki/index.php/notcurses"
|
||||
LANGUAGES C CXX)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
@ -46,7 +46,7 @@ egcpool_grow(egcpool* pool, size_t len){
|
||||
return -1;
|
||||
}
|
||||
// nasty cast here because c++ source might include this header :/
|
||||
typeof(*pool->pool)* tmp = (typeof(pool->pool))realloc(pool->pool, newsize);
|
||||
char* tmp = (char*)realloc(pool->pool, newsize);
|
||||
if(tmp == NULL){
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user