From 0af753a54e372b5a4e866ac16680bb83100b3f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 18 Apr 2022 16:33:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BC=96=E8=AF=91=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=B8=AD=E5=8A=A0=E5=85=A5c99=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79df9d3..7504afc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,10 @@ if (${isBigEndian}) add_definitions(-DWORDS_BIGENDIAN) endif() +#在编译选项中加入c99支持 +add_compile_options(-std=c99) +message(STATUS "optional:-std=c99") + set(TEST 0) if(TEST) add_definitions(-DTEST_SIMPLE_CRYPTO)