Skip to content

Commit c2aa6ec

Browse files
committed
2 parents 179e594 + 167f66a commit c2aa6ec

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ add_definitions("-Wall -Wextra")
77

88
# Once CMake 3.1 is required, you can replace this with CMAKE_CXX_STANDARD
99
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
10-
set(CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
10+
set(CMAKE_CXX_FLAGS "--std=gnu++17 ${CMAKE_CXX_FLAGS}")
1111
endif()
1212

1313
find_package(SDL2 2.0.0)

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ set(CALICO_SOURCES
1515
jagpad.h
1616
j_eeprom.c
1717
keywords.h
18-
m_argv.c m_argv.h
1918
m_main.c
2019
music.h
2120
o_main.c
@@ -76,6 +75,7 @@ set(ELIB_SOURCES
7675
elib/dllist.h
7776
elib/elib.h
7877
elib/m_ctype.h
78+
elib/m_argv.c elib/m_argv.h
7979
elib/misc.cpp elib/misc.h
8080
elib/parser.cpp elib/parser.h
8181
elib/qstring.cpp elib/qstring.h

src/posix/posix_platform.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ static hal_bool POSIX_FileExists(const char *path)
135135
qstring normpath { path };
136136
normpath.normalizeSlashes();
137137

138-
return (!stat(normpath.constPtr(), &st) && !S_ISDIR(st.st_mode));
138+
if (!stat(normpath.constPtr(), &st) && !S_ISDIR(st.st_mode))
139+
return HAL_TRUE;
140+
return HAL_FALSE;
139141
}
140142

141143
//

0 commit comments

Comments
 (0)