aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-13 22:45:39 +0800
committercrupest <crupest@outlook.com>2022-05-13 22:45:39 +0800
commit7a0779adf3c31951de623862d9f85d62a679f03d (patch)
tree752c4c0771ee913260a76c570a13017e4373e892
parent9f29b54784cf27995c910c9af02851861675fdc9 (diff)
downloadcru-7a0779adf3c31951de623862d9f85d62a679f03d.tar.gz
cru-7a0779adf3c31951de623862d9f85d62a679f03d.tar.bz2
cru-7a0779adf3c31951de623862d9f85d62a679f03d.zip
...
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/common/platform/unix/UnixFileStream.cpp1
2 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 48e6b21d..e1510f8f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.21)
set(CMAKE_CXX_STANDARD 20)
+set(CMAKE_CXX_EXTENSIONS OFF)
project(cru)
@@ -11,8 +12,6 @@ add_subdirectory(lib/GSL)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
-set(C)
-
enable_testing()
if (MSVC)
diff --git a/src/common/platform/unix/UnixFileStream.cpp b/src/common/platform/unix/UnixFileStream.cpp
index 7a44b92a..7c1b0280 100644
--- a/src/common/platform/unix/UnixFileStream.cpp
+++ b/src/common/platform/unix/UnixFileStream.cpp
@@ -4,7 +4,6 @@
#include "cru/common/platform/unix/ErrnoException.h"
#include <fcntl.h>
-#include <sys/_types/_s_ifmt.h>
#include <unistd.h>
namespace cru::platform::unix {