Commit 387bcf57 authored by Yang's avatar Yang

fix problem with ubuntu24

parent e547371b
...@@ -2,6 +2,7 @@ cmake_minimum_required( VERSION 3.8 ) ...@@ -2,6 +2,7 @@ cmake_minimum_required( VERSION 3.8 )
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
project(CMINUSF) project(CMINUSF)
add_compile_definitions(_POSIX_C_SOURCE=200112L)
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -std=c99") set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -std=c99")
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <cstdint>
class Module; class Module;
class IntegerType; class IntegerType;
......
#include "util.hpp" #include "util.hpp"
#include <cstdint>
std::string ptr_to_str(const void* ptr) std::string ptr_to_str(const void* ptr)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment